I can't seem to find a way to do it. I tried for example:
hg push -f git+ssh://git@github.com:greatwolf/testrepo.git
but it would just abort with:
abort: refs/heads/master changed on the server, please pull and merge before pushing
Looking through the github web interface, there doesn't appear to be any strip
command like in bitbucket. How can I nuke the last changeset committed without needing to install a git client on my working machine?
Right now the solution I'm thinking of is to just delete the repo from github, remake it and then push my local repo up. That'll work but it's more of a 'brute-force' kind of approach so I'd consider it as a last resort.