Skip to content

Instantly share code, notes, and snippets.

@moisesnarvaez
Last active August 24, 2016 19:34
Show Gist options
  • Save moisesnarvaez/2d56b6cd68b96f368e703217e28b70b0 to your computer and use it in GitHub Desktop.
Save moisesnarvaez/2d56b6cd68b96f368e703217e28b70b0 to your computer and use it in GitHub Desktop.
# Git
alias gs='git status '
alias ga='git add '
alias gb='git branch '
alias gc='git commit'
alias gd='git diff'
alias go='git checkout '
alias gk='gitk --all&'
alias gx='gitx --all'
# More Git
alias gst='git stash'
alias gsta='git stash apply'
alias gp='git push origin $(currentBranch)'
alias gpf='git push origin $(currentBranch) --force'
alias gpr='git pull --rebase origin $(currentBranch)'
alias gcd='git commit -a --amend --no-edit'
alias currentBranch='git rev-parse --abbrev-ref HEAD'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment