Re: Newbie: Do I need to download the entire repo to work on just 1 file?
- From
- Nicolas Sebrecht <nicolas.s-dev@laposte.net>
- Date
- Mar 22, 2009, 23:31 UTC
- Message-ID
- <20090322233120.GC12974@vidovic>
- In-Reply-To
- <fabb9a1e0903221610p3b11f09ctc6a9f4d38b1bda3e@mail.gmail.com>
On Mon, Mar 23, 2009 at 12:10:48AM +0100, Sverre Rabbelier wrote:
Show 8 quoted lines
> > Heya, > > On Mon, Mar 23, 2009 at 00:10, Nicolas Sebrecht > <nicolas.s-dev@laposte.net> wrote: > > No, you don't. Why not use the '--depth <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