简体   繁体   中英

How do I clone a git repo into hg repo as a submodule?

Have searched around, and was pointed to this: https://www.mercurial-scm.org/wiki/Subrepository

But thats a hg within a hg. (hg aka mercurial)

I need the steps to clone the git repo into my current hg repo as a submodule.

By the way, I have both hg and git installed.

So I'm wondering, can I simply go into my hg repo's folder, and do a git clone there?

So hg alone, will manage the whole application (including the git repo), while git manages, its own repo.

Will there be any implications?
Is this method the so called git submodule within hg?

You can create a git subrepo. Have a look at https://www.mercurial-scm.org/wiki/Subrepository#Git_subrepositories

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM