Git learning site: here
Chapter 1
Git is local, unlike Perforce or CVS, where you have to connect to the server to diff against previous revisions. Git only adds data to local database, so it’s hard to screw things up.
Three states: working directory, staging area, and git directory.
On the Mac, install Git from:
$ sudo port install git-core +svn +doc +bash_completion +gitweb
Set git username and user email.
$ git config --global user.name "John Doe"
$ git config --global user.email johndoe@example.com
Chapter 2
“git clone” is the command that copies an entire repository, including all the history and revisions of files.