SyntaxFix
Write A Post
Hire A Developer
Questions
If you haven't pushed that change yet, git reset --hard HEAD^
git reset --hard HEAD^
Otherwise, reverting the revert is perfectly fine.
Another way is to git checkout HEAD^^ -- . and then git add -A && git commit.
git checkout HEAD^^ -- .
git add -A && git commit