Created
June 23, 2010 04:08
-
-
Save jackdempsey/449478 to your computer and use it in GitHub Desktop.
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] | |
ci = commit | |
st = status | |
co = checkout | |
lc = log ORIG_HEAD.. --stat --no-merges | |
sb = show-branch | |
mg = merge | |
wu = log origin/master.. | |
pop = reset head^ | |
squish = commit -a --amend -C HEAD | |
squeeze = commit --amend -C HEAD | |
wup = log -p origin/master.. | |
save = stash && git-stash apply | |
onup = !zsh ~/bin/rebase-branches |
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
#!/opt/local/bin/zsh | |
function branches-to-rebase { | |
git branch | grep -v master | |
} | |
for branch in `branches-to-rebase` | |
do | |
git checkout $branch; | |
git rebase master; | |
git checkout master | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment