Git - the fast version control system

Pro Git Book : The Creative Commons licensed freely available online book

Tutorials

Short and Sweet

The Git Reference site is a online git reference built as a tutorial.

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 might be helpful if you're coming from the SVN world.

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.

Help.GitHub – Guides on a variety of Git and GitHub related topics

Reference

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

The DZone RefCard is a nice reference to keep handy

Visual Git Cheat Sheet is a one page printable cheat sheet

Books


Git Internals PDF
by Scott Chacon

Version Control with Git
by Jon Loeliger

Pro Git
by Scott Chacon
Creative Commons Licensed

Pragmatic Guide to Git
by Travis Swicegood

Videos


Linus Torvalds visits Google to share his thoughts on git, the source control management system he created two years ago.

A one-hour talk by Randal Schwartz describing what Git is, and why it should be used over other revision control systems.

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

Branchy 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