Reverting commits on develop branch including Merge commits

Views: 64   

This post shows you how to revert commits on develop branch including the merge commits which out leaving any trace of those merge commit.

First choose the last stable commit to which you want to go. Once you get the commit hash run the following series of commands to reset your current develop to that commit hash

git reset f8d992387ff843b08asdasd9a7ecd2948736sad219545d3f9c61
git reset --hard
git push -f origin develop
On By