How to delete/revert a Git commit

You’ve just pushed something to a Git repository and you immediately regret it! Run git log┬áto see what the commit id was: git log Take the first 7 characters of the commit SHA id and do the following: git revert <commit_id> git push --force But if you’re like me and Read more…

By Andrew Odendaal, ago