As other people have already noted, No. 3 is the second best solution. This is about the same as using Git, too, only then will you merge remote branches instead of local ones, and they will probably have several commits instead of one.
Of course, you could repackage your commits on top of your changes (according to your first option), but then you rewrite the story, which will pose many other problems.
I would not suggest using manual corrections (option number 2). Git has a very good merge tool designed for these situations.
*: The best solution still is to convince your colleagues to start using Git. Right now you are spending a lot of time and effort because of your preferences. If they donβt want to listen to you, just talk to your boss and tell him that you spend a lot of time because of their stubbornness and that he has a higher risk of introducing errors, and that (well, I suppose you can come up with a few more arguments to convince him that it will save money).
Nic wortel
source share