Firstly, I saw the answer to this question here earlier, but he was buried so many “answers” that do not answer my question correctly, that I can not find it again.
So, like this: How do I restore to Git the previous version in my story so that it becomes a new commit on top of my current story?
Basically, this is the most fundamental thing I would like to do with a version control system. Just doing a reset does not work, because it discards my history, a simple rollback does not work either, because sometimes it gives me error messages (what I want to do should be possible without error messages).
Edit:
If I just do git revert, this happens:
git revert HEAD~1
error: could not revert f1b44e3... Towards translating API to kernel.
hint: after resolving the conflicts, mark the corrected paths
hint: with 'git add <paths>' or 'git rm <paths>'
hint: and commit the result with 'git commit'
source
share