1

I have a development branch which serves as a parent (base) for all feature branches. And the commit log looks like below:

ticket9: did something
ticket8: fixed something

ticket7: some action (squashed and rebased commits)
ticket7: some action (squashed and rebased commits)
ticket7: some action (squashed and rebased commits)

ticket6: implemented something

Is there a way where I can take out the commits and the resulting code of ticket7 from the development branch and link ticket 6 and ticket 8 like below?

ticket9: did something
ticket8: fixed something
ticket6: implemented something
Jessi
  • 1,378
  • 6
  • 17
  • 37

1 Answers1

2

If you can, consider doing a:

That will involve you force pushing (git push --force) the rewritten branch though, meaning you need to warn your colleagues working on that same branch.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • Thank you, so I've read the cherry pick method and there isn't a true way of merging ticket 6 and ticket 8,9 together as the base of where ticket 8 was developed is different. – Jessi Nov 02 '18 at 18:56