A
A
Alexey2016-12-07 15:51:17
git
Alexey, 2016-12-07 15:51:17

Git flow how to revert to a previous release?

Started using git flow. There was a situation when it is necessary to return to master on the previous release. Tell me how to do it right. Let me explain the situation:
There is a master branch with releases
There is a development branch with merging of task development branches
A release has been created and completed. That is, from the development branch it went to the release and then to the master (there is a tag with the project version).
Question:
If there are 3 commits in the master (merging with the release). Names first, second, third. I am in master at third. How to return to second to undo third, In this case, the development branch must include first, second, third.
From the first time it was not possible to implement according to this logic, create a hotfix from the development branch, make a hard reset for the second in the hotfix branch and finish the hotfix with a merge to the master and return to development.
Thanks for answers!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
aol-nnov, 2016-12-07
@azovl

"releases" in gitflow terms are tags on the master.
if it is possible to force, that everything is simple: git checkout master; git reset --hard second

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question