Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
# Git
alias g="git"
alias commits="git shortlog -sn"
alias gl="git log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --"
alias gs="git status"
alias ga="git add"
alias gc="git commit -m"
alias gp="git push"
alias gpl="git pull"
alias gd="git diff"
alias ghash="git rev-parse HEAD && git rev-parse HEAD | pbcopy"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment