I have a repository with a branch called "develop". Both origin and local are the same. Now I want to reset the last commit(s). I do:
git reset --hard HEAD^
This does what I want locally. How can I sync these changes to the remote repository? When I try to push now I get the error that my remote is X commits ahead.
git reset origin/develop --hard HEAD^
does not work.
Any ideas?