Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个项目,我在本地使用 git 来管理我的源代码。我想在我的应用程序中使用 github 上的一个开源库,但我想确保如果公共 github 存储库有更改,我可以轻松地将它们与我的代码集成。最好的方法是什么?
使用 git 子模块。它允许您跟踪遥控器,但也允许您将代码版本绑定到遥控器版本。它们使用起来并不简单,因此请阅读 git submodule {add,init,update}