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?

3
  • git-scm.com/book/en/Git-Tools-Submodules ? Commented Apr 10, 2013 at 7:54
  • Duplicate: stackoverflow.com/q/6681459/23118 Commented Apr 10, 2013 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. Commented Apr 10, 2013 at 20:28

1 Answer 1

2

Perhaps you're looking for Git submodules.

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.