git-extras
git-extras copied to clipboard
Feature request: Rebase all/multiple branches on top of master
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
Possibly relevant:
- https://github.com/nornagon/git-rebase-all
- https://github.com/goncalopp/git-utilities