Skip to content

Instantly share code, notes, and snippets.

@oscarcp777
Created December 15, 2017 13:51
Show Gist options
  • Save oscarcp777/2cc21515bcc9c8f159e6da4a2a52ba16 to your computer and use it in GitHub Desktop.
Save oscarcp777/2cc21515bcc9c8f159e6da4a2a52ba16 to your computer and use it in GitHub Desktop.
Git Aliases
alias ga='git add'
alias gaa='git add .'
alias gbv='git branch -v'
alias gcm='git commit -m'
alias gca='git commit -a -m'
alias gco='git checkout'
alias gcob='git checkout -b'
alias gcom='git checkout master'
alias gcos='git checkout staging'
alias gcod='git checkout develop'
alias gpl='git pull origin $(git rev-parse --abbrev-ref HEAD)'
alias gpd='git pull origin develop'
alias gpm='git pull origin master'
alias gps='git push origin $(git rev-parse --abbrev-ref HEAD)'
alias gs='git status'
alias gst='git stash'
alias gsta='git stash apply'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment