git push rejected: error: failed to push some refs
git push -f if you have permission, but that will screw up anyone else who pulls from that repo, so be careful. If that is denied, and you have access to the server, as canzar says below, you can allow this on the server with git config receive.denyNonFastForwards false