Git - the fast version control system

Git Community Book : The git-scm.com community-built comprehensive online book

Tutorials

Short and Sweet

The official Git tutorial is a good place to get started.

Everyday Git in 20 commands is good for a useful minimum set of commands.

The SVN Crash Course at git.or.cz might be helpful if you're coming from the SVN world.

Git for the lazy is a great guide for beginners.

Longer, More In Depth

Git for Designers – No knowledge of version control? No problem.

Git for Computer Scientists – A quick introduction to git internals for people who are not scared by words like Directed Acyclic Graph.

The Git User's Manual is a comprehensive resource, covering a lot of Git functionality.

Git Magic – An alternative online book with the source online.

The GitHub Guides – Guides on a variety of Git and GitHub related topics

Multimedia

GitCasts – Short and sweet screencasts on a variety of Git topics

Reference

The official and comprehensive reference manual comes as part of the Git package itself

Visual Git Cheat Sheet – Everyone loves to cheat

37signals’ Git Resources – Useful lightweight reference to keep handy

Books


Git Internals PDF
by Scott Chacon



Pragmatic Version Control Using Git
by Travis Swicegood

Videos

Git is a one-hour talk by Randal Schwartz describing what Git is, and why it should be used over other revision control systems. He also gives a walkthrough of the basic concepts of the system.

Linus Torvalds, the creator of Git, made a speech at Google.

Git Tutorial Talk – A recording of an excellent Git tutorial given by Bart Trojanowski for the Ottawa Group of Ruby Enthusiasts.

Commands

Here is a list of the most common commands you're likely to use on a day-to-day basis.

Local Commands

git config Get and set repository or global options
git init Create an empty git repository or reinitialize an existing one
git add Add file contents to the index
git status Show the working tree status
git commit Record changes to the repository
git log Show commit history
git show Show information on any object
git tag Create, list, delete or verify tags

Remotey Commands

git clone Clone a repository into a new directory
git remote Manage set of tracked repositories
git pull Fetch from and merge with another repository or a local branch
git fetch Download objects and refs from another repository
git push Update remote refs along with associated objects

Branchey Commands

git checkout Checkout a branch or paths to the working tree
git branch List, create, or delete branches
git merge Join two or more development histories together
git rebase Forward-port local commits to the updated upstream head

Patchy Commands

git diff Show changes between commits, commit and working tree, etc
git apply Apply a patch on a git index file and a working tree
git format-patch Prepare patches for e-mail submission
git am Apply a series of patches from a mailbox
You can find links to more documentation at the
Git Documentation wiki page.



hosting donated by: github logo