简体   繁体   English

模拟存储库subversion外部到git

[英]Simulate repository subversion externals to git

I develop webprojects using subversion and I want to move to git. 我使用subversion开发webprojects,我想转向git。 I have a lib folder (php files), a js folder (js files) and for each webproject a different directory (eg project1) which has the lib folder and js folder as externals. 我有一个lib文件夹(php文件),一个js文件夹(js文件),并为每个webproject一个不同的目录(例如project1),它有lib文件夹和js文件夹作为外部。 That way I have one copy of js files and php lib files in my repository. 这样我在我的存储库中有一个js文件和php lib文件的副本。 If I change a file in my project folder marked as external the change propagates to all projects and to the library folder. 如果我更改标记为外部的项目文件夹中的文件,则更改将传播到所有项目和库文件夹。 How can I simulate this behaviour on git? 我怎样才能在git上模拟这种行为?

Perhaps you're looking for Git submodules. 也许你正在寻找Git子模块。

Have a look here for more information: http://git-scm.com/book/en/Git-Tools-Submodules 有关更多信息,请访问此处: http//git-scm.com/book/en/Git-Tools-Submodules

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM