Skip to content

How to split a branch? #1314

Answered by PawelLipski
zyberzebra asked this question in Q&A
Discussion options

You must be logged in to vote

Hey, I think you could just edit .git/machete (with git machete edit or git machete add) and reset the branches to point to the right commits... so something like:

git checkout Feature-Branch-3
git machete add Feature-Branch-4   # or manually, with git machete edit

git checkout Feature-Branch-2
git reset --keep commit-3   # --keep is similar but safer than --hard

git checkout Feature-Branch-3
git reset --keep commit-4

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by zyberzebra
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants