Skip to content

Instantly share code, notes, and snippets.

@matthojo
Created February 19, 2014 14:45
Show Gist options
  • Save matthojo/9093519 to your computer and use it in GitHub Desktop.
Save matthojo/9093519 to your computer and use it in GitHub Desktop.
My Terminal alias
# -------------------------------------------------------------------
# General
# -------------------------------------------------------------------
alias op='open .'
# -------------------------------------------------------------------
# Git
# -------------------------------------------------------------------
alias ga='git add'
alias gp='git push'
alias gl='git log'
alias gpl="git log --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
alias gs='git status'
alias gd='git diff'
alias gm='git commit -m'
alias gma='git commit -am'
alias gb='git branch'
alias gc='git checkout'
alias gcb='git checkout -b'
alias gra='git remote add'
alias grr='git remote rm'
alias gpu='git pull'
alias gcl='git clone'
alias gta='git tag -a -m'
alias gf='git reflog'
alias gv='git log --pretty=format:'%s' | cut -d " " -f 1 | sort | uniq -c | sort -nr'
@ivan-demchenko
Copy link

Nice!

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