Skip to content

Instantly share code, notes, and snippets.

@attilaolah
Forked from matthieua/git-aliases
Last active December 27, 2015 01:29
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save attilaolah/7245212 to your computer and use it in GitHub Desktop.
git aliases for command line ninjas
alias g='git status'
alias gb='git branch'
alias gd='git diff'
alias gdm='git diff master'
alias gl='git log'
alias ga='git add'
alias gaa='git add -p .'
alias gco='git checkout'
alias gc='git commit -v'
alias gca='git commit -v -a'
alias gba='git branch -a'
alias gp='git push'
alias gre='git rev-parse HEAD'
alias eg='$EDITOR .git/config'
alias ungit="find . -name '.git' -exec rm -rf {} \;"
# disable -a gg # if needed
function gg() {
git commit -m "$*"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment