My colleague has pushed some commits to our working branch by mistake and now I want to rollback to a previous commit both locally and remotely.
I use reset --hard to the selected commit, the HEAD in my local branch moves to the selected commit and then I use
git push -f origin working_branch:working_branch
to push the HEAD but I get denying non-fast-forward error.
How should I rollback to the selected commit both locally and remotely?
Thanks in advance!