From: Nicolas Sebrecht Date: Sun, 22 Mar 2009 23:31:20 GMT Subject: Re: Newbie: Do I need to download the entire repo to work on just 1 file? Message-ID: <20090322233120.GC12974@vidovic> In-Reply-To: On Mon, Mar 23, 2009 at 12:10:48AM +0100, Sverre Rabbelier wrote: > > Heya, > > On Mon, Mar 23, 2009 at 00:10, Nicolas Sebrecht > wrote: > > No, you don't. Why not use the '--depth ' option of 'git clone' ? > > That depends on if he wants to push back to the original repo or not, right? It depends of what the OP means by "entire repository". You can't "cherry-pick" one single file without download the entire tree of the working directory. You can push with a truncated history. What you can't do is checkout from the history you don't have in your local repository. -- Nicolas Sebrecht