I have a situation where I will have to rebase a topic branch to a master. That's fine, it's the normal rebase case and works great.
The complication is when I'm trying to get this process to be in sync on a bare remote repository.
e.g.
o--o--o origin/master
\
o--o origin/topic
o--o--o clone/master - tracking origin/master
\
o--o clone/topic - tracking origin/topic
Now I make a commit to clone/master which I push to origin/master, so far so good.
o--o--o--n origin/master
\
o--o origin/topic
o--o--o--n clone/master - tracking origin/master
\
o--o clone/topic - tracking origin/topic
This is where I want to end up:
o--o--o--n origin/master
\
o--o origin/topic
o--o--o--n clone/master - tracking origin/master
\
o--o clone/topic - tracking origin/topic
I just can't seem to get there, please help.
The workflow is:
I would modify slightly workflow that you have in order to avoid push --mirror.
You need --force because origin/topic will change the ancestor and you have disable fast forward check.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With