I would like to configure my Mercurial project to be able to push it into gitHub repository.
While using command:
hg push git+ssh://[email protected]/myusername/myproject.git
I receive a msg:
abort: repository git+ssh://[email protected]/myusername/myproject.git not found!
I already check and establish SSH connection, and it looks ok:
Hi myusername! You've successfully authenticated, but GitHub does not provide shell access.
my respository url copied from github (it's a fork from other open-source project): https://github.com/myusername/myproject.git
What else I should check? Why I have an information that it doesn't exist while, in fact, it does? Where can be a problem?
The Hg-Git plugin can convert commits/changesets losslessly from one system to another, so you can push via a Mercurial repository and another Mercurial client can pull it. In theory, the changeset IDs should not change, although this may not hold true for complex histories. Commands.
hg-github is a Mercurial extension that wraps hg-git, and supports a work-flow where repositories are hosted on Bitbucket and mirrored on GitHub. This work-flow normally requires adding Git paths to each repository's config file, and creating Mercurial bookmarks pointing to the GitHub repository's branch name.
Thanks to rfkortekaas I found a problem with hg-git setup.
In ~/.hgrc there has to be:
[extensions]
hgext.bookmarks =
hggit =
Are you sure that you have enabled and setup the hg-git extension correctly. This error also appears if the extension is not correctly setup.
Can you try it with a local git repository to phase-out github as a possible error.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With