Skip to content

Instantly share code, notes, and snippets.

@stavrossk
Forked from jasonrudolph/git-aliases
Last active December 14, 2015 01:48
Show Gist options
  • Save stavrossk/5008721 to your computer and use it in GitHub Desktop.
Save stavrossk/5008721 to your computer and use it in GitHub Desktop.
Git Aliases.
# git
alias gl='git pull'
alias gp='git push'
alias gd='git diff | mate'
alias gdh='git diff HEAD | mate'
alias gc='git commit -v'
alias gca='git commit -v -a'
alias gcap='git commit -v -a && git push'
alias gb='git branch'
alias gba='git branch -a'
alias gs='git status'
alias grm="git status | grep deleted | awk '{print \$3}' | xargs git rm"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment