Created
May 5, 2014 19:35
-
-
Save kirkland/e4ac6c56eb575b649539 to your computer and use it in GitHub Desktop.
This file contains 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
function g() { | |
if [[ $# == '0' ]]; then | |
git status | |
else | |
case $1 in | |
fuss) | |
shift | |
git rebase -i HEAD~"$1";; | |
*) | |
git "$@";; | |
esac | |
fi | |
} | |
alias gs='git show --format=fuller' | |
alias gd='git diff' | |
alias gbr='git branch' | |
alias gl='git log --format=fuller' | |
alias glg='git lg' | |
alias gg='git grep -i' | |
alias ggs='git grep' | |
alias gco='git checkout' | |
alias gdm='git diff master' | |
alias gdc='git diff --cached' | |
alias gdmno='git diff master --name-only' | |
alias gdno='git diff --name-only' | |
alias gsno='gs --name-only' | |
delete_branches () { | |
for branch in $@ | |
do | |
gbr -D $branch | |
done | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment