Git Command Reference
Over sixty Git commands grouped by area, each with its syntax and a short explanation, filterable as you type.
Search Git commands
Showing 0 commands
How to use the Git Command Reference
- Type an area or command name such as stash or rebase.
- Find the command you need in the filtered table.
- Copy the syntax and replace the placeholders with your own values.
Features
- More than sixty Git commands
- Grouped by setup, branching, remote and more
- Syntax and a short explanation for each
- Instant filtering of the table
Advertisement
Frequently Asked Questions
Common questions about the free online git command reference.
Type a keyword into the search box, such as branch or undo, and the table is filtered to
matching commands instantly.
Fetch downloads new commits without touching your work, while pull fetches and then merges
them into your branch.
Use git reset --soft HEAD~1 to keep the changes staged, or git reset --hard HEAD~1 to discard
them completely.
Use git revert on the commit, because it adds a new commit that reverses the change without
rewriting history.
Merge keeps both histories and adds a merge commit, while rebase replays your commits for a
straight line history.
Stash when you need a clean working tree but are not ready to commit, for example before
switching branches.
It deletes untracked files and directories, which is useful for removing build output that
Git is ignoring.
Run git diff for unstaged changes or git log --follow for the commit history of that file.
Yes. It is completely free, needs no account and runs entirely in your browser with no
tracking.
Last updated: October 10, 2026