Keyboard Shortcuts

Your one-stop destination for Windows, Linux, Mac, Word, Excel, PowerPoint, Chrome, Firefox, ... shortcuts!

Git Keyboard Shortcuts (Command Line)

Shortcut Description
git status Show working tree status
git add . Add all files
git commit -m "message" Commit with message
git push Push to remote
git pull Pull from remote
git clone [url] Clone repository
git checkout -b [branch] Create and switch branch
git checkout [branch] Switch branch
git branch -d [branch] Delete branch
git merge [branch] Merge branch
git log View commit history
git diff Show changes
git reset --hard Reset to last commit
git stash Stash changes
git stash pop Apply stashed changes
git fetch Fetch from remote
git rebase Rebase branch
git diff --staged Show staged changes
git remote -v List remote repositories
git branch List branches
git branch -a List all branches
git config --global alias.[name] [command] Create global alias
git show [commit] Show commit details
git rm [file] Remove file from staging
git mv [file] Rename file