Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

hg-git repository not found

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?

like image 313
Malvinka Avatar asked Mar 16 '15 20:03

Malvinka


People also ask

What is Hg in Git?

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.

Does GitHub work with Mercurial?

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.


Video Answer


2 Answers

Thanks to rfkortekaas I found a problem with hg-git setup.

In ~/.hgrc there has to be:

[extensions]

hgext.bookmarks =

hggit =

like image 107
Malvinka Avatar answered Oct 09 '22 12:10

Malvinka


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.

like image 34
rfkortekaas Avatar answered Oct 09 '22 12:10

rfkortekaas