Skip to content

Instantly share code, notes, and snippets.

@JoshBarr
Created November 21, 2016 00:41
Show Gist options
  • Save JoshBarr/8cf49c2b19812ba878a131576e3239fc to your computer and use it in GitHub Desktop.
Save JoshBarr/8cf49c2b19812ba878a131576e3239fc to your computer and use it in GitHub Desktop.
alias g="git"
alias ga="git add"
alias gb="git branch"
alias gba="git branch -a"
alias gbd="git branch -d"
alias gbdr="git push origin --delete"
alias gc="git commit"
alias gca="git commit -a"
alias gch="git checkout"
alias gl="git log --pretty=format:'%Cred%h%Creset %s %Cgreen(%cr)%Creset %Cblue[%an]%Creset' --date=relative"
alias gchp="git cherry-pick"
alias gs="git status"
alias gsb="gs -sb"
alias gst="git stash"
alias gf="git fetch"
alias gm="git merge"
alias gpsh="git push --tags"
alias gpl="git pull"
alias gpsho="gpsh origin"
alias gplo="gpl origin"
alias gd="git diff --color"
alias gdpat="gd --patience"
alias gds="gd --stat"
alias gdl="gl --cherry-pick"
alias gt="git tag"
alias gsh="git show --color"
alias gshs="gsh -s"
alias gshst="gsh --stat"
alias gbl="git blame --date=short"
alias gco='git checkout'
alias gfu="git fetch upstream"
alias grbm="git rebase upstream/master"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment