I have merged some commits to develop branch (remote) and now want to roll back.
So I tried making a copy of develop and tried this on develop_copy
git reset --soft HEAD~1
I did ran the above command few times to the commit where it was all fine.
Now when I tried to do push it gives me error as:
updates were rejected because the tip of your current branch is behind
Not sure what needs to be done now, if I do git pull then I get all those commits I rejected with the above command back in my branch.
Can anyone tell me what do I need to do above to push my branch with the changes? Is there a better way to rollback?
My master is also up to date so I can also copy all from my master to develop if there is this option to do so.