Rebase all descendant branches. For example, you add commit F
on master
:
A-B-F (master)
\ D (feature-a)
\ /
C (feature)
\
E (feature-b)
and want to rebase all the branches that were made off of master
, so it looks like this:
A-B-F (master)
\ D' (feature-a)
\ /
C' (feature)
\
E' (feature-b)
TRY ON A THROWAWAY CLONE OF A REPOSITORY FIRST. You have been warned.
Requires Ruby 1.9.3+. Download/clone this repository, then run:
# https://github.com/libgit2/rugged#install
brew install cmake
gem install rugged
cd path/to/your/project/repo
git checkout upstream-branch
# make changes
git commit -m "added missing step"
ruby path/to/rebase_all.rb
git push --all -f