I have made wrong modifications in the code, then commited them, then pushed them to remote.
Now local mybranch
and origin/mybranch
are in sync.
The I found that my code if wrong. I would like to step back one comming. I did reset current branch to previous commit and got correct state in local repository, but unable to push this to remote.
If I do normal push, it merges and I stay on wrong code again.
After I did force push, I got my extra commits logically disappeared, but I still had the wrong code.
Now I am to revert my changes in old-fashion style manually.
Was it better way to perform?