Skip to content

Git: submodule常见操作用法 | 共建代码世界,践行开源精神 #17

Description

@CodeWater404

https://blog.codewater.top/Git-submodule%E5%B8%B8%E8%A7%81%E6%93%8D%E4%BD%9C%E7%94%A8%E6%B3%95/#more

背景某个工作中的项目需要包含并使用另一个项目,也许是第三方库,或者你独立开发的。 现在问题来了:你想要把它们当做两个独立的项目,同时又想在一个项目中使用另一个库。Git submodule 就是为了解决这个问题而生的,它允许你将一个仓库作为另一个仓库的子模块,同时让这两个库保持独立的提交记录。这里记录一下submodule常见操作用法,方便以后查阅。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions