version control - Using git flow, how would I revert back to a previous release? -
i'm using git flow projects. when release has been merged master branch tagged release version (e.g. 1.2.0) , deployed production servers.
now want quickly revert previous release tag (e.g. 1.1.0) deployment should not have happened.
elaboration:
- i merge 1.2.0 release branch master branch.
- i tag master branch 1.2.0.
- i push local repo origin.
- i conclude released early.
- i want revert state of master tagged 1.1.0.
- i want master @ origin revert 1.1.0 state well.
how this?
assuming want keep history, undo changes 1.2.0 release did. use git-revert create new commit reverts 1.2.0 did:
git checkout master git revert head