Skip to content

Instantly share code, notes, and snippets.

Last active October 21, 2022 15:24
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
Oh My Zsh Git Commands
Alias Command Description
ga <file> git add Add file to index
gaa git add --all Add all files to index
gb git branch See all branches
gcm git checkout master Checkout master branch
gcd git checkout develop Checkout develop branch
gco git checkout <branch> Checkout specified branch
gcb git checkout -b <branch> Create specified branch
gc git commit --verbose Commit and review changes
gc! git commit --verbose --amend Amend last commit
gcam <message> git commit --all --message Commit all files w/ message
gd git diff See file differences
gf git fetch Fetch changes from remote repo
glg git log --stat See log w/ file changes
ggl git pull origin Pull from origin
ggp git push origin Push to origin
gst git status See status


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment