Git Guide
From Buici
These are my notes on what I've discovered about using git. Jeff Garzik has a [[1][guide]], too.
Contents |
Getting Started
I maintain on repository that is an unmolested clone of the upstream source.
git clone rsync://rsync.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git linux-2.6
This creates a directory, linux-2.6/.git with the mirror of the repository. If your version of git is new enough, it will fetch tags as well as the object database.
Creating a Working Directory
Find a comfortable workplace with enough disk space to checkout and build the kernel. Clone the local repository.
git clone /repository/linux-2.6 work
Branching with Tags
If you want to develop patches against an earlier point in the development tree, create a branch at that tag.
cd work git checkout -b my_branch v2.6.11
Update Cache for All Changed Files
This may be made easier at some time in the future.
cd work git-update-cache `git-diff-files | cut -f2`
List New, Uncommitted & Uncached Files
This one doesn't appear to have an analog in git. Cogito has a command that will show the unmanaged files.
cg-status
--Elf 16:58, 6 April 2006 (PDT)

