Cheat sheet guide
Git shortcuts worth learning first
This page collects 32 searchable Git keyboard shortcuts across 5 categories. Start with the shortcuts for Setup & Init, Staging & Committing, Branches, Remote, then print the cheat sheet once the important ones are worth keeping nearby.
- Switch OS tabs for Windows, macOS, or Linux shortcuts.
- Use / to jump to search instantly.
- Use Compare mode when moving between machines.
- Print or save the page as a compact PDF cheat sheet.
Frequently asked questions
What is the fastest way to find Git shortcuts on this page?
Use the search box or press /, then type an action such as git init.
Can I print this Git shortcut cheat sheet?
Yes. Use the Print / PDF button or your browser print command to save a compact cheat sheet.
Does this page include Windows and Mac shortcuts for Git?
Yes. Use the OS tabs to switch between Windows and macOS shortcuts. For example, git init is git init on Windows and git init on macOS where available.