I'm trying to overwrite a GitHub repository with my local repository, using Mercurial only.
I'm trying to follow these steps: https://help.github.com/articles/changing-author-info/
(summarized)
1. Clone,
2. In Git-Bash, execute agit filter-branch
script that changes author info,
3.git push --force --tags origin 'refs/heads/*'
I managed to update the author info (step 2) using hg convert:
(summarized)
- Enable thehgext.convert
extension,
- Create a text fileauthors.convert.list
with lines likeold author info = new author info
,
-hg convert --authors authors.convert.list .
I'm stuck at step 3. When I execute hg push --force
I get the following error that I can't seem to force my way around:
abort: branch 'refs/heads/master' changed on the server, please pull and merge before pushing