Skip to content

Instantly share code, notes, and snippets.

@buzztaiki
Created March 1, 2013 13:17
Show Gist options
  • Select an option

  • Save buzztaiki/5064606 to your computer and use it in GitHub Desktop.

Select an option

Save buzztaiki/5064606 to your computer and use it in GitHub Desktop.
マージ元をまとめて新しいbaseに置き換えるスニペット
for b in $branches; do
git co $b && git rebase $oldbase && git rebase --onto $newbase $oldbase && git branch --set-upstream $b $newbase
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment