Re: [howto] Kernel hacker's guide to git, updated
- From
- Chuck Lever <cel@citi.umich.edu>
- Date
- Sep 29, 2005, 21:23 UTC
- Message-ID
- <433C5B34.9060907@citi.umich.edu>
- In-Reply-To
- <433C4B6D.6030701@pobox.com>
Jeff Garzik wrote:
Show 29 quoted lines
> Dave Jones wrote: > >> You wrote.. >> >> $ git clone >> rsync://rsync.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git >> linux-2.6 >> $ cd linux-2.6 >> $ rsync -a --verbose --stats --progress \ >> >> rsync://rsync.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git/ >> \ >> .git/ >> >> Could be just.. >> >> $ git clone >> rsync://rsync.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git >> linux-2.6 >> $ cd linux-2.6 >> $ git pull >> >> Likewise, in the next section, git pull doesn't need an argument >> if pulling from the repo it cloned. > > > > Nope. It intentionally includes the manual rsync because clone/pull > doesn't seem to grab tags. Or at least last time I checked...
i just used the instructions at the bottom of your web page to grab new tags, and it completely wiped all my Stacked Git metadata. (fortunately i was trying this in a test repository, and it will be simple to recover the missing files).
so, this is probably something that should have a warning, or maybe you might consider providing an example that won't wipe out existing files and directories under .git/ ...
begin:vcard fn:Chuck Lever n:Lever;Charles org:Network Appliance, Incorporated;Linux NFS Client Development adr:535 West William Street, Suite 3100;;Center for Information Technology Integration;Ann Arbor;MI;48103-4943;USA email;internet:cel@citi.umich.edu title:Member of Technical Staff tel;work:+1 734 763 4415 tel;fax:+1 734 763 4434 tel;home:+1 734 668 1089 x-mozilla-html:FALSE url:http://www.monkey.org/~cel/ version:2.1 end:vcard