git reset --hard HEAD~2
git reflog expire --expire-unreachable=now
git push -f
This reverses the most recent commit. The -f is needed to reverse the commit on your git server....
I apologize if my previous response wasn't helpful. I see that you meant "revert" and not "reverse". I apologize that two of your commits are now gone and I understand that you mean "revert", not "reverse"? You could try
git revert HEAD
git push
If you have any more questions, I'll be glad to help. :)Maybe I'm underestimating GPT-4 here, but when I tried to get it to write my some CLI commands, it failed in often non-obvious ways (I was trying to resize and compress an image using imagemagick).
Seemed like a waste of time to try&error with the responses, compared to looking up the documentation.
But well, man yelling at cloud I guess.
For programming and computer questions, I'm still grateful for StackOverflow and its sister sites. Finding a conprehensive answer with lots of updates and comments describing different aspects of the problem, all for exactly the question I asked, is satisfying and it feels very time-efficient too.