I'm pretty new to using revert
in git, and I'm wondering if something like the following can be done. Let's say I have made a few commits already, and I have a (self-explanitory) text file which looks like the following:
This line was added at commit AAAAA
This line was added at commit BBBBB
This line was added at commit CCCCC
I would like to use revert to remove the changes made by commit BBBBB, to get a file that looks like this:
This line was added at commit AAAAA
This line was added at commit CCCCC
However, reverting commit BBBBB results in a merge conflict. Is there any way to avoid the conflict?