-
<Git> Subtree & SubmoduleFlower in my dev/Git 2020. 11. 20. 15:18
사전준비 - subtree 와 submodule을 추가할 repo가 있는 상태 ### main으로 사용할 저장소 (이하 main) ### subtree로 사용할 저장소 (이하 sub) ### git clone {main_repo} ### cd {main_dir} $ git clone git@github.com:flower/sub_main.git $ cd sub_main $ ls -alh Subtree - 등록 ### git remote add {sub_repo_name} {sub_repo} ### git remote ### git subtree add -P {sub_dir} {sub_repo_name} ### ls -alh # ~/sub_main/ $ git remote add git@github.com..