There are 3 branches involved in this question. I have the master
branch, I have a bug-fix
branch, and I have a refactor
branch.
This is the timeline:
- Created
bug-fix
branch offmaster
to fix a bug. - Created
refactor
branch offmaster
to do some refactoring. bug-fix
branch has been merged tomaster
.- Now in the
refactor
branch, I am going to refactor some areas in the file where the bug was fixed. But this branch still has the unfixed bug.
What's the best course of action to make at this point?
- Cherry-pick the fix from
master
intorefactor
branch? - Continue refactoring and fix the conflict later on during merging.
- Rebase my current branch into master?
- Others?