简体   繁体   中英

How to Add Git repos as subrepos to Mercurial

I'd like to have a mercurial repo with some git subrepos. I don't want to push the actual git repos again onto the mercurial repo, I want only to be able to track different states of them via the mercurial repo. Basically I want only to push only the hgsubstate onto the mercurial repo. What is the cleanest way to achieve such thing?

Read related subrepo's docs ?

In short: you can add Git-subrepos the same way, as any other external subrepos, just prefix URL of repo with [git]

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