Documentation
Everything you need to know about Git. Search the reference manual, find command details, or jump into the Pro Git book.
Common Commands
git config
SetupGet and set repository or global options.
git init
SetupCreate an empty Git repository or reinitialize an existing one.
git clone
SetupClone a repository into a new directory.
git add
BasicAdd file contents to the index (staging area).
git commit
BasicRecord changes to the repository.
git status
BasicShow the working tree status.
git branch
BranchingList, create, or delete branches.
git checkout
BranchingSwitch branches or restore working tree files.
git merge
BranchingJoin two or more development histories together.
git push
SharedUpdate remote refs along with associated objects.
git pull
SharedFetch from and integrate with another repository or a local branch.
git log
BasicShow commit logs.
No commands found. Try checking the full reference.
Pro Git Book
The entire Pro Git book, written by Scott Chacon and Ben Straub, is available to read online for free.
Start ReadingVideo Tutorials
Visual learner? Check out the external video series to master Git concepts.
Watch videos