Malvinka
Malvinka

Reputation: 1389

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?

Upvotes: 7

Views: 2681

Answers (3)

Malvinka
Malvinka

Reputation: 1389

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

In ~/.hgrc there has to be:

[extensions]

hgext.bookmarks =

hggit =

Upvotes: 5

rfkortekaas
rfkortekaas

Reputation: 6494

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.

Upvotes: 3

aflp91
aflp91

Reputation: 673

I'm not sure you can push in Git if you didn't clone your repository from a Git one before using hg-git. It seems me that hg-git manages a .git locally.

Upvotes: 1

Related Questions