Skip to content

Instantly share code, notes, and snippets.

@jackdempsey
Created June 23, 2010 04:08
Show Gist options
  • Save jackdempsey/449478 to your computer and use it in GitHub Desktop.
Save jackdempsey/449478 to your computer and use it in GitHub Desktop.
[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
#!/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