So I'm just starting to learn git and I'm completely new to command line so struggling a bit.
So far I've learnt the simple things. Initializing, staging changes and then committing changes. Then I pushed all my changes to GitHub.
Now what I want to learn is going back to previous commits in git. So my test project currently has two commits and I want to go from 2 to 1. This is what I used to do that
git revert "my hash here"
This is what git returned:
$ git revert a7da914393d0400f9a4eb77fd263e125a8ce7c57
error: 'revert' is not possible because you have unmerged files.
hint: Fix them up in the work tree,
hint: and then use 'git add/rm <file>' as
hint: appropriate to mark resolution and make a commit,
hint: or use 'git commit -a'.
fatal: revert failed
Just wondering what this means and why it failed???