I added 3 commits in my branch:
- '3' ->
c3425f(added: <h3>1</h3>) - '2' ->
c34252(added: <h2>2</h2>) - 'first commit' ->
c3425d(added: <h1>1</h1>)
At the end i got this structure:
<h1>1</h1>
<h2>2</h2>
<h3>3</h3>
Now I want to exclude the c34252 commit. For this I used git revert c34252.
Doing this my IDE show me this:
<h1>1</h1>
<<<<<<< HEAD
<h2>2</h2>
<h3>3</h3>
=======
>>>>>>>
So, it suggest me that the second commit contains <h2>2</h2><h3>3</h3>, but should contain only <h2>2</h2>. So, why git suggest me that the second commit contains both changes? What git command should be used to exclude only the second commit?