-
-
Save attilaolah/7245212 to your computer and use it in GitHub Desktop.
git aliases for command line ninjas
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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