简体   繁体   中英

Simulate repository subversion externals to git

I develop webprojects using subversion and I want to move to 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. That way I have one copy of js files and php lib files in my repository. 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?

Perhaps you're looking for Git submodules.

Have a look here for more information: http://git-scm.com/book/en/Git-Tools-Submodules

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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