slepciu
7/12/2017 - 8:27 AM

How to undo git flow feature finish?

How to undo git flow feature finish?

#These steps should do the trick:

#Get the sha's needed:

git log
#<sha1> is the commit right before the merge
#<sha2> is the last commit on develop before you started working on the feature

git checkout develop
git checkout -b feature/<feature-name>
git reset <sha1> --hard
git checkout develop
git reset <sha2> --hard
#Push your feature branch.