Skip to content

Instantly share code, notes, and snippets.

@ryansechrest
Last active April 12, 2024 09:17
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ryansechrest/0fc2b545f6a7af576c11a483373a4ee4 to your computer and use it in GitHub Desktop.
Save ryansechrest/0fc2b545f6a7af576c11a483373a4ee4 to your computer and use it in GitHub Desktop.
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

Links

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