Skip to content

Instantly share code, notes, and snippets.

@seancheung
Last active May 12, 2017 13:06
Show Gist options
  • Save seancheung/2d9253cb80de40ffb43426ddd06b98ca to your computer and use it in GitHub Desktop.
Save seancheung/2d9253cb80de40ffb43426ddd06b98ca to your computer and use it in GitHub Desktop.
Useful aliases
#!/bin/bash
alias gs="git status $*"
alias go="git checkout $*"
alias gob="git checkout -b $*"
alias gof="git checkout -f $*"
alias ga="git add $*"
alias gaa="git add . $*"
alias gc="git commit $*"
alias gcm="git commit -m $*"
alias gcam="git commit -am $*"
alias gb="git branch $*"
alias gd="git diff $*"
alias gl="git log $*"
alias gr="git reset $*"
alias gps="git push $*"
alias gpu="git pull $*"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment