I am still new to git and I am trying to use the git with java. So, I have a java file and inside this file, I started providing print statements and commit each time I finish a print statement to be able to use the git revert. So, let's say: - The first commit: I added my name - The second commit: I added my job - The third commit: I added my address Hence, here in each version of the code I have a print statement added to my java code.
Now, when am trying to revert the second commit using: git revert while providing the commit id of the second commit, it's telling me that I have conflicts that I should resolve, knowing that I haven't changed anything in the subsequent commits after commit #2, I just added print statement for third commit.
All what I need to do is to try to use the git revert to remove the second commit and have a version containing the first and last print statements.
Please if could anyone help in this matter, thanks!