You’ve just pushed something to a Git repository and you immediately regret it!
git log to see what the commit id was:
Take the first 7 characters of the commit SHA id and do the following:
But if you’re like me and your problem was because of a merge conflict that you tried to resolve and clearly failed at, but still had the balls to push to the repo before wishing you hadn’t; you can still recover this terrible moment in your life by undoing the merge request itself.
This will allow you to literally undo the merge that you previously failed at!
Better luck next time!