LWN.net Logo

Kernel Hacker's guide to git (updated)

From:  Jeff Garzik <jgarzik@pobox.com>
To:  Linux Kernel <linux-kernel@vger.kernel.org>
Subject:  Kernel Hacker's guide to git (updated)
Date:  Fri, 15 Jul 2005 13:36:21 -0400
Cc:  Git Mailing List <git@vger.kernel.org>, Dave Jones <davej@redhat.com>


I've updated my git quickstart guide at

	http://linux.yyz.us/git-howto.html

It now points to DaveJ's daily snapshots for the initial bootstrap 
tarball, is reorganized for better navigation, and other things.


Also, a bonus recipe:  how to import Linus's pack files (it's easy).

This recipe presumes that you have a vanilla-Linus repo 
(/repo/linux-2.6) and your own repo (/repo/myrepo-2.6).

$ cd /repo/myrepo-2.6
$ git-fsck-cache		# fsck, make sure we're OK
$ git pull /repo/linux-2.6/.git	# make sure we're up-to-date
$ cp -al ../linux-2.6/.git/objects/pack .git/objects
$ cp ../linux-2.6/.git/refs/tags/* .git/refs/tags
$ git-prune-packed
$ git-fsck-cache		# fsck #2, make sure we're OK

This recipe reduced my kernel.org sync from ~50,000 files to ~5,000 files.

	Jeff



-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Copyright © 2005, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds
Powered by Rackspace Managed Hosting.