w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
How do I force a merge commit when the branch being merge has been merged and reverted already?

As you noted, git doesn't do the merge because it sees those commits are in the branch's history already. The revert is what's in the way.

I've hit this before. What you need to do is first revert the revert. That will remove the commit that removes the commits. :-)

git revert G

You then probably want to re-merge just to pick up anything that happened afterwards.





© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.