3 ms·
If you have a stack of 5+ branches, the easiest way I've found to deal with this is to take the top branch with all the commits and rebase it. Then list all the
by karmakaze 5y ago
If you have a stack of 5+ branches, the easiest way I've found to deal with this is to take the top branch with all the commits and rebase it. Then list all the commits in one window and list all the origin commits. You can then do a
git branch -f branch-name commit
for each branch-name without having to switch branches or do any more rebases. It helps if you have short, easily distinguishable commit messages. Then `git push --force-with-lease` each branch.