GitHub repo 디렉토리에서 repo를 유지 관리합니다
-
14-11-2019 - |
문제
GitHub를 사용하여 새로운 새롭게 새롭고 HTML / Mycms에서 Repo에서 복제했고 이제는 HTML / mycms / 시스템 /Docs (Repo는 문서라고합니다).
그러나, 내가 당기지 않을 때, html / mycms에 대한 업데이트 만 얻고 문서가 무시됩니다.HTML / MyCM 폴더가 이미 MyCMS Repo로 설정되어 있기 때문입니다.이 문제를 해결하는 방법을 모르겠습니다 ..
MyCMS Repo 내에있는 동안 문서 복구를 어떻게 당길 수 있습니까?그리고 어떻게 든 동시에 둘 다 끌어 올릴 수 있습니까?
감사합니다!
해결책
You have to use git submodules for what you want. The docs repo will have to be hosted separately (on Github) and you add it as a submodule to your main repo. That way, when you clone it as git clone --recursive git@github.com:user/mainrepo
, you will get the submodule docs repo in as well.
Look here to know about submodules: http://progit.org/book/ch6-6.html
제휴하지 않습니다 StackOverflow