Link to home
Create AccountLog in
Avatar of thready
thready

asked on

easy git rebase question

Hi experts,

See image- let's say i have 3 branches - one called releases, one called dev, and one called "BranchOnTopOfDev".  The goal is to take the left hand side and make it the right hand side in the image.

At some point, releases and dev go on their own way, then i create the "BranchOnTopOfDev".  How do I rebase BranchOnTopOfDev so that any commits unique to it go on top of releases instead?  I tried rebasing to releases when in BranchOnTopOfDev with this command:

git rebase releases

... only to realize that I'd incorrectly get everything in dev as well since it's part of the branch too...
diagram.png
ASKER CERTIFIED SOLUTION
Avatar of thready
thready

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of thready
thready

ASKER

this was the solution