I have the following situation: I have a Git repository, and at one point I created a branch from master. I did not do much in this branch at the time, and then I made the master branch for several commits, and the code changed a lot.
Now I needed to resume the work on this branch and complete it, but it was complicated because the branch is really long overdue. This has two problems:
It's hard to implement back there when the code was in a way, if it's changed a lot now.
The only solution I thought was to find a way to get this branch and move it to be the same as the branch master and redo its work. But it also does not look perfect, because after all I would lose what I had already started on this branch.
In that sense how do I solve this? How can I get back to working on this branch if I have made the branch master a lot and now the code is very different?