I want to know what's going on. I created an HTML file and put some lines in it
this is first line
this is second line
this is third line
this is fourth line
and committed after each line like commit a, commit b, commit c, commit d respectively.
Now I performed a revert to commit c, but it throws an error :
could not revert 82b69e5... c
hint: after resolving the conflicts, mark the corrected paths <br>
hint: with 'git add <paths>' or 'git rm <paths>' <br>
hint: and commit the result with 'git commit'<br>
I want to know how git-revert works. I know something like it "undoes a commit and add a new commit", but don't know to successfully use it.