I currently have a stable master branch, and a branch with a lot of big changes on certain classes.
While using the "changes" branch, I discovered a bug I also want to fix on the master branch.
I fixed it by changing only one line of code on the master.
Now, I want to have this hotfix also added onto the "changes" branch.
Reading some answers, it's been suggested that the best option would be to Rebase.
When applying git rebase master
on the "changes" branch, though, git seems to consider one of the
conflicting files a completely different file than before. Using mergetools --tool diffuse
, I get the following diagnostic:
As you can see, there's one change in the first file, tons of changes in the second, and apparently no overlap between anything.
My question is: Is there a way to merge a small change into a heavily altered branch, without having to spend a lot of effort into conflict resolution? If not, what's the best way to handle this situation?