{"thread":{"id":"40816","subject":"Re: [git-for-windows] Git a single file from remote","startedAt":"2015-11-17T13:47:15Z","lastAt":"2015-11-17T13:47:15Z","messageCount":1,"participants":["Johannes Schindelin"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"273433","messageId":"alpine.DEB.1.00.1511171441350.1686@s15462909.onlinehome-server.info","threadId":"40816","inReplyTo":"f41ee51a-aee4-41d5-b50d-e47ea3cab611@googlegroups.com","subject":"Re: [git-for-windows] Git a single file from remote","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2015-11-17T13:47:15Z","receivedAt":"2015-11-17T13:47:15Z","isPatch":false,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Hi Chaz,\n\nOn Mon, 16 Nov 2015, Chaz wrote:\n\n> An origin git repository has been setup.  Added a remote repository \n> (remotegit).\n> \n> \"git remote -v show\" displays both origin and remote links.\n> \n> What is the best way to copy a single file from the remote repo to the \n> origin repo?\n\nThis is not specific to Windows, so it would be more appropriate to send\nthis question to the Git mailing list (Cc:ed).\n\nGit is not designed to download specific files, at least not by default.\n\nHaving said that, some remotes are configured to allow downloading\narchives and in such a case you might be able to specify something like\n`git archive --remote=<remote> HEAD:README`, but I am personally unaware\nof any remote that supports this.\n\nYour best bet may be to fetch an individual ref with the `--shallow`\noption.\n\nCiao,\nJohannes\n"}]}