The git revert command simply creates a commit that cancels another. You have to run git revert HEAD again and this will undo the previous undo and add another commit for this. Or you can do git reset --hard HEAD~ . But be careful with this last one when it deletes data.
HEAD~ means commit before the current HEAD
jonescb Sep 07 2018-10-09T00: 00Z
source share