Skip to content

Instantly share code, notes, and snippets.

@pratapvardhan
Last active August 1, 2017 09:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pratapvardhan/b0038af7c957bc620df3 to your computer and use it in GitHub Desktop.
Save pratapvardhan/b0038af7c957bc620df3 to your computer and use it in GitHub Desktop.
Git alias
alias gst='git status'
alias gl='git pull'
alias gp='git push'
alias gd='git diff | mate'
alias gau='git add --update'
alias gc='git commit -v'
alias gca='git commit -v -a'
alias gb='git branch'
alias gba='git branch -a'
alias gco='git checkout'
alias gcob='git checkout -b'
alias gcot='git checkout -t'
alias gcotb='git checkout --track -b'
alias glog='git log'
alias glogp='git log --pretty=format:"%h %s" --graph'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment