Git commands
Git
- git statusWorking tree status
- git cloneClone a repo
- git commitCommit
- git addStage changes
- git pushPush to remote
- git pullPull from remote
- git switchSwitch branches (modern)
- git commit --amendFix the last commit
- git switch / checkoutSwitch branch
- git branchBranches
- git reflogHEAD history (lifesaver)
- git cherry-pickApply specific commits
- git fetchFetch from remote
- git logView history
- git stashStash changes
- git blameWho changed each line
- git diffShow diff
- git initCreate a repository
- git mergeMerge
- git grepSearch tracked files
- git rmRemove from tracking
- git restoreRestore files
- git submoduleManage submodules
- git mvTracked rename/move
- git bisectBisect for the bad commit
- git remoteRemotes
- git worktreeMultiple working trees
- git configConfiguration
- git lfsLarge File Storage
- git rebaseRebase
- git archiveExport an archive
- git tagTags
- git credential / config helperCredential helpers
- git rev-parseResolve revisions and repo facts
- git revertRevert a commit
- git shortlogCommits grouped by author
- git describeTag-based version strings
- git ls-filesList tracked files
- git resetReset state
- git showShow a commit
- git applyApply raw diffs
- git gcGarbage collection
- git ls-remoteProbe remote refs
- git bundleRepo in a single file
- git format-patch / amMake and apply patches
- git fsckCheck repo integrity
- git mergetool / difftoolResolve with external tools
- git sparse-checkoutPartial checkouts
- git update-indexIgnore local edits to tracked files
- git commit -S / tag -sSigned commits and tags
- git merge-baseFind the common ancestor
- git cleanClean untracked
Other platforms
- Linux178 commands
- Windows107 commands
- PowerShell88 commands
- Kubernetes53 commands
- macOS52 commands
- Cloud48 commands
- Cisco IOS48 commands
- SQL44 commands
The same reference, with no signal at all
Every command on this site, held on your device. The app adds 632 more: 1,510 commands and 120 fix flows, searchable with no connection. Free to install, no ads (some content is a one-time purchase).
Get it free on the App Store