How to revert a push to remote origin?
How to revert a push to remote origin? If the commits to be undone are all pushed to the remote origin master, it is unclear what the recipe is to revert the remote origin, the local repo and the working directory - all 3 must be reverted to the commit 3 commits ago. Which is the safest way to revert pushed commits? If you're not sure, then use revert, it's the safest option. If you really, really, like to remove the commits and don't care about the changed history, use reset --hard and push --force. This has the following consequences:...