7

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?

1 Answer 1

3

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

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.