git-extras icon indicating copy to clipboard operation
git-extras copied to clipboard

Feature request: Rebase all/multiple branches on top of master

Open rgreinho opened this issue 8 years ago • 1 comments

When merging branches with the --no-ff switch, the git delete-merged-branches command does not work because no merge commit was created.

As a consequence, I have to go through all my branches, rebase them on master, before being able to clean up:

cd $(git root)
git pull
git checkout branch1
git rebase master
git checkout branch2
git rebase master
git checkout master
git delete-merged-branches

I would envision an command working as follow: git rebase-all would rebase all the branches on top of master git rebase-all branch1 branch2 would rebase branch1 and branch2 on top of master

rgreinho avatar Dec 01 '17 20:12 rgreinho

Possibly relevant:

  • https://github.com/nornagon/git-rebase-all
  • https://github.com/goncalopp/git-utilities

johnyf avatar Mar 05 '18 10:03 johnyf