I have a fairly simple test example using revert in my repo. I created a file and five commits, adding a single new line of text to my file with each commit. I'd like to revert back to (as an example) 3rd of the five commits.
I get conflict markers in my file that I don't fully understand however, nor is it clear how I resolve those conflicts.
After calling my revert my file looks like this:
Version 1
<<<<<<< HEAD
Version 2
Version 3
Version 4
Version 5
=======
Version 2
>>>>>>> parent of 021e824... Version 3 Added
How do I interpret this?
Edit - I understand questions about this have been asked before but none of them have described how to interpret the markers. In my example above I'm trying to revert to 021e824 yet the line reading "HEAD" is two commits prior to that. Why has "Version 2" been singled out if the point I'm reverting to is after that line was added and committed?