Git Command Reference
Common Git commands cheat sheet with explanations. Fast, free, and fully client-side.
| Git Command | Explanation |
|---|---|
| git clone <url> | Clone a repository from a remote host. |
| git branch | List local branches. |
| git checkout -b <name> | Create and switch to a new local branch. |
| git add . | Stage all modified files for committing. |
| git commit -m "message" | Commit staged changes locally with details. |
| git push origin <branch> | Upload local commits to the remote branch. |
| git pull origin <branch> | Fetch and merge updates from the remote host. |
| git stash | Save uncommitted work temporarily in cache. |
Browse more
See all developer reference guides and interactive utilities.