Git Commands Reference
Comprehensive guides for essential Git commands. Each article includes syntax reference, practical examples, and common use cases for version control.
Basic
git statusCheck the state of your working directory and staging area
5 min read
git addStage changes for the next commit
5 min read
git commitRecord changes to the repository
6 min read
git initCreate an empty Git repository or reinitialize an existing one
4 min read
git cloneClone a repository into a new directory
5 min read
git pushUpdate remote refs along with associated objects
6 min read
git pullFetch from and integrate with another repository or a local branch
6 min read
Branch
git branchList, create, or delete branches
6 min read
git checkoutSwitch branches or restore working tree files
7 min read
git switchSwitch branches
4 min read
git mergeJoin two or more development histories together
8 min read
git rebaseReapply commits on top of another base tip
10 min read
git stashStash the changes in a dirty working directory away
6 min read