* Nikodemus Siivola:
> 1. Install Git and Cogito, package names are usually called git-core
> and cogito.
Cogito has been deprecated and is no longer maintained.
> 2. cg clone git://sbcl.boinkor.net/sbcl sbcl.git
> You now have a full copy of the SBCL history in sbcl.git.
> The tree is ~45Mb.
Just use "git clone".
> 3. cd sbcl.git
> 4. cg switch -c my-branch
> You now have a local branch called my-branch. These branches
> are cheap and easy to maintain.
"git checkout -b my-branch"
> 5. Hack, hack, hack.
> cg status # what has changed since last commit
> cg diff # what exactly has changed since last commit
"git diff HEAD"
"git diff" shows only the differences of the working copy and the
commit staging area (called the "index").
> cg diff -r master # how does the branch differ from the mainline
"git diff master my-branch"
> cg reset # revert to last committed version
"git reset --hard" (I believe, it seems to work for me most of the
> cg commit # commit current version
"git commit -a"
> cg update # get latest changes to the active branch from the boinkor mirror
> cg switch master # switch to mainline
"git checkout master"
Use "git merge my-branch" to merge the branch, and "git branch -d
my-branch" to remove it.
> cg switch my-branch # switch back to own branch
> git branch # show all branches, and identify the current one
> gitk # visual browser for the history
"git citool" -- interactive check-in tool
Cogito hides most aspects of the index, which makes switching to the
GIT tools a bit confusing initially. The index is the staging area
used to construct commits. The citool allows you to move individual
files and hunks to and from that staging area, which makes it pretty
clear what's going on. The command-line GIT tools make this a bit
harder to understand.