1 我想從我作爲子模塊添加到存儲庫的存儲庫中創建一個Python包。有沒有辦法將__init__.py文件添加到此子模塊並在父庫中進行跟蹤?如何將文件添加到git子模塊? 來源 2017-05-08 Lenar Hoyt
1 如果你在子模塊回購添加任何文件,你必須: 添加,提交,並從該子模塊回購推(假設你要推到其上游回購的權利。如果沒有,。您需要change the remote url of that submodule by one representing a fork that you own) 回到父回購,添加,提交和推送:父回購會添加新的子模塊SHA1(其樹的新狀態)。該SHA1被稱爲gitlink(a special entry in the parent repo index) 來源 2017-05-08 21:07:38 VonC