From: Nicolas Sebrecht <nicolas.s-dev@laposte.net>
To: Sverre Rabbelier <srabbelier@gmail.com>
Cc: Nicolas Sebrecht <nicolas.s-dev@laposte.net>,
git@vger.kernel.org, Anthony Rasmussen <evoluenta@hotmail.com>
Subject: Re: Newbie: Do I need to download the entire repo to work on just 1 file?
Date: Mon, 23 Mar 2009 00:31:20 +0100 [thread overview]
Message-ID: <20090322233120.GC12974@vidovic> (raw)
In-Reply-To: <fabb9a1e0903221610p3b11f09ctc6a9f4d38b1bda3e@mail.gmail.com>
On Mon, Mar 23, 2009 at 12:10:48AM +0100, Sverre Rabbelier wrote:
>
> 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
next prev parent reply other threads:[~2009-03-22 23:33 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-22 22:08 Newbie: Do I need to download the entire repo to work on just 1 file? Anthony Rasmussen
2009-03-22 23:00 ` Sverre Rabbelier
2009-03-22 23:06 ` Geoffrey Lee
2009-03-22 23:10 ` Nicolas Sebrecht
2009-03-22 23:10 ` Sverre Rabbelier
2009-03-22 23:16 ` Geoffrey Lee
2009-03-22 23:31 ` Nicolas Sebrecht [this message]
2009-03-22 23:36 ` Nicolas Sebrecht
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090322233120.GC12974@vidovic \
--to=nicolas.s-dev@laposte.net \
--cc=evoluenta@hotmail.com \
--cc=git@vger.kernel.org \
--cc=srabbelier@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.