How to use GIT when I have multiple files shared between multiple projects

I have some projects which have a lot of files in common. My question is how to organize the structure of these projects in GIT. I came from MKS and PVCS which are per-file version control system. I read about GIT submodules, but I do not know if they are the solution. The thing I am most worried is the linking the files to the projects: For example if I found a bug in one project file and that file is used in other 2 projects I must manually replace the file in the other 2 GIT repos. How can I do this in an efficient way?


Yes, you can use "submodule" for this purpose.

To deal with more complex things you can use "subtree" extension:

https://github.com/apenwarr/git-subtree

链接地址: http://www.djcxy.com/p/10438.html

上一篇: 排序Excel公式输出?

下一篇: 如何在多个项目之间共享多个文件时使用GIT