0

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 (e.g 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?

tom papas
  • 11
  • 1
  • http://git-scm.com/book/en/Git-Tools-Submodules ? – bahrep Apr 10 '13 at 07:54
  • Duplicate: http://stackoverflow.com/q/6681459/23118 – hlovdal Apr 10 '13 at 12:31
  • I have tried submodules, but I cant simulate exactly the externals behavior. Maybe I missed something. I don't understand the first four lines in the answer of the above question which refers to revisions and hashes. – tom papas Apr 10 '13 at 20:28

1 Answers1

2

Perhaps you're looking for Git submodules.

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