开发者

Changing a subrepository url in mercurial, from https to ssh. Any problems doing that?

I have in a .hgsub, an entry to a subrepository, that is invoked using https.

myrepo = https://user@bitbucket.org/user/project

Now, I wan开发者_如何学Pythont to use ssh since both repositories are mine and I've created a ssh key. So, it would be:

myrepo = ssh://hg@bitbucket.org/user/project

I haven't changed, and haven't tested either. Does someone knows if changing this url is going to add some kind of problem?


It should be fine as long as you have a password or public/private key combo to use with ssh as that matches their example syntax here: https://www.mercurial-scm.org/wiki/QuickStart

However, you can also do the following:

ssh://user@website.org//absolute/path/to/repo

This is what I have in my .hg/hgrc when I push/pull projects to my home server (user@ can be eliminated if you have the same username on both machines).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜