Skip to content

Instantly share code, notes, and snippets.

@kirkland
Created May 5, 2014 19:35
Show Gist options
  • Save kirkland/e4ac6c56eb575b649539 to your computer and use it in GitHub Desktop.
Save kirkland/e4ac6c56eb575b649539 to your computer and use it in GitHub Desktop.
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