I had a mistake and commit some changes to git which I should not have committed.
After I made the commit, I pushed my changes. 
I then used the following commands to try and reset my changes.

```
 git reset --hard head

```

Now I want to push this 'reset' to the remote repository with this command:

```
git push MyBranch

```

But I am getting this error:

```
remote: error: denying non-fast-forward refs/heads/branch (you should pull first)

```

I tried to use this command without any success: 

```
git push -f "origin" 

```

Any idea what I can do?