Skip to content

Instantly share code, notes, and snippets.

@peterldowns
Created April 14, 2014 06:24
Show Gist options
  • Save peterldowns/10621099 to your computer and use it in GitHub Desktop.
Save peterldowns/10621099 to your computer and use it in GitHub Desktop.
Git Aliases
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"
@andreyrusanov
Copy link

nice collection! But why don't to use https://git-scm.com/book/tr/v2/Git-Basics-Git-Aliases?

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