I'm using git flow for my projects. When a release has been merged into the master branch it is tagged with the release version (e.g. 1.2.0) and deployed to my production servers.
Now I want to quickly revert to the previous release tag (e.g. 1.1.0) as the deployment should not have happened.
Elaboration:
How would I do this?
Assuming you want to keep the history, but undo the changes the 1.2.0 release did. Use git-revert to create a new commit that reverts everything 1.2.0 did:
git checkout master
git revert HEAD