Git Keyboard Shortcuts

Git keyboard shortcut reference covering 32 bindings for Windows, Mac & Linux. Commonly searched bindings include Status, Stage All, and Commit. 32 of 32 shortcuts are verified against official Git documentation, each with a linked source when available. Search by action name, filter by category, look up what a key combination does, print a cheat sheet, or practice with flashcards.

Official Git documentation

Git

ActionDescriptionWindowsMacVerifiedSource
Status Show working tree status git+status git+status Windows, macOS, Linux Source
Stage All Stage all changes git+add+. git+add+. Windows, macOS, Linux Source
Commit Commit staged changes git+commit+-m+"message" git+commit+-m+"message" Windows, macOS, Linux Source
Push Push commits to remote git+push git+push Windows, macOS, Linux Source
Pull Fetch and merge remote git+pull git+pull Windows, macOS, Linux Source
Clone Clone a repository git+clone+<url> git+clone+<url> Windows, macOS, Linux Source
Branch List List branches git+branch git+branch Windows, macOS, Linux Source
Create Branch Create and switch branch git+checkout+-b+<name> git+checkout+-b+<name> Windows, macOS, Linux Source
Merge Merge branch into current git+merge+<branch> git+merge+<branch> Windows, macOS, Linux Source
Stash Stash changes git+stash git+stash Windows, macOS, Linux Source
Stash Pop Apply stashed changes git+stash+pop git+stash+pop Windows, macOS, Linux Source
Log Oneline Compact commit history git+log+--oneline git+log+--oneline Windows, macOS, Linux Source
Diff Show unstaged changes git+diff git+diff Windows, macOS, Linux Source
Unstage Unstage files git+reset+HEAD git+reset+HEAD Windows, macOS, Linux Source
Revert Revert a commit git+revert+<commit> git+revert+<commit> Windows, macOS, Linux Source
Fetch Download remote changes git+fetch git+fetch Windows, macOS, Linux Source
Rebase Rebase current branch git+rebase+<branch> git+rebase+<branch> Windows, macOS, Linux Source
Cherry-pick Apply specific commit git+cherry-pick+<commit> git+cherry-pick+<commit> Windows, macOS, Linux Source
Switch Branch Switch to branch git+checkout+<branch> git+checkout+<branch> Windows, macOS, Linux Source
Remote List List remotes git+remote+-v git+remote+-v Windows, macOS, Linux Source
Add Remote Add remote repository git+remote+add+origin+<url> git+remote+add+origin+<url> Windows, macOS, Linux Source
Show Show commit details git+show+<commit> git+show+<commit> Windows, macOS, Linux Source
Blame Show line-by-line authorship git+blame+<file> git+blame+<file> Windows, macOS, Linux Source
Tag Create a tag git+tag+<name> git+tag+<name> Windows, macOS, Linux Source
Init Initialize repository git+init git+init Windows, macOS, Linux Source
Reset Soft Reset keeping changes git+reset+--soft+HEAD~1 git+reset+--soft+HEAD~1 Windows, macOS, Linux Source
Reset Hard Discard all changes git+reset+--hard git+reset+--hard Windows, macOS, Linux Source
Clean Remove untracked files git+clean+-fd git+clean+-fd Windows, macOS, Linux Source
Diff Staged Show staged changes git+diff+--staged git+diff+--staged Windows, macOS, Linux Source
Short Status Compact status git+status+-s git+status+-s Windows, macOS, Linux Source
Log Graph Visual commit graph git+log+--oneline+--graph git+log+--oneline+--graph Windows, macOS, Linux Source
Amend Amend last commit git+commit+--amend git+commit+--amend Windows, macOS, Linux Source

← All apps on Shortcut Atlas

Loading Shortcut Atlas…