I made quite few changes in my project (I was working on a remote branch and not the master), I committed them and created a pull request on BitBucket and merged the branch
Follow this step by step:
REVERTING A MERGE COMMIT
Master was merged and pushed into Develop with conflicts/unwanted codes.
To revert using Sourcetree:
“Reset develop to this commit”.hard from drop down at the left bottom. Its done. There should be no pull thereafter. If any pull occurs revert using terminal as below.
Now Merge master into develop.
To revert using Terminal:
git reset --hard git push -f, and its done. Merge master into develop.