All of lore.kernel.org
 help / color / mirror / Atom feed
* Re: [git-for-windows] Git a single file from remote
       [not found] <f41ee51a-aee4-41d5-b50d-e47ea3cab611@googlegroups.com>
@ 2015-11-17 13:47 ` Johannes Schindelin
  0 siblings, 0 replies; only message in thread
From: Johannes Schindelin @ 2015-11-17 13:47 UTC (permalink / raw)
  To: Chaz; +Cc: git, git-for-windows

Hi Chaz,

On Mon, 16 Nov 2015, Chaz wrote:

> An origin git repository has been setup.  Added a remote repository 
> (remotegit).
> 
> "git remote -v show" displays both origin and remote links.
> 
> What is the best way to copy a single file from the remote repo to the 
> origin repo?

This is not specific to Windows, so it would be more appropriate to send
this question to the Git mailing list (Cc:ed).

Git is not designed to download specific files, at least not by default.

Having said that, some remotes are configured to allow downloading
archives and in such a case you might be able to specify something like
`git archive --remote=<remote> HEAD:README`, but I am personally unaware
of any remote that supports this.

Your best bet may be to fetch an individual ref with the `--shallow`
option.

Ciao,
Johannes

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-11-17 13:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <f41ee51a-aee4-41d5-b50d-e47ea3cab611@googlegroups.com>
2015-11-17 13:47 ` [git-for-windows] Git a single file from remote Johannes Schindelin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.