Skip to content

Instantly share code, notes, and snippets.

@kyranjamie
Created May 27, 2014 13:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save kyranjamie/0c6735d3b66cc74c2f06 to your computer and use it in GitHub Desktop.
Save kyranjamie/0c6735d3b66cc74c2f06 to your computer and use it in GitHub Desktop.
# 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