jquery

gist JS

Friday, March 20, 2009

git rebase interactive: maverick style

Re-writing history? You know you feel like a bad-ass. Why rock git in silence?

function git-mav {
afplay -s 0 12 ~/Music/iTunes/iTunes\ Music/Kenny\ Loggins/Top\ Gun/Danger\ Zone.mp3 &
git rebase -i $1
}

Usage:
git-mav HEAD~10

2 comments:

vic said...

:), better use a git alias, so you don't have to add that function to your shell profile.

git config --global alias.mav '!afplay -s 0 12 ~/Music/iTunes/iTunes\ Music/Kenny\ Loggins/Top\ Gun/Danger\ Zone.mp3 &
git rebase -i'

Jeff Dwyer said...

I love the Internet. Thanks vic.