0

We are migrating projects from SVN to GIT.

I have an issue. In one of the SVN project, they used SVN externals in order to create shortcuts between modules like this :

-ModuleA       
|_ srcA    
-ModuleB    
|_ srcB    
-Common    
|_ srcCommon    
|_ srcA (via externals)    
|_ srcB (via externals)   

When I do a checkout of the svn repository, in my folder Common, I have 3 files.

Admitting that these 3 modules are in the same git repository now (for some budget reasons...), how can I make it similar in git. (from what I understand, subtree or submodule works when having two differents repositories)

Because for now if I clone the git repository, I have :

-ModuleA    
|_ srcA
-ModuleB    
|_ srcB    
-Common    
|_ srcCommon
2
  • Possible duplicate of SVN:externals equivalent in Git? Commented Oct 3, 2019 at 9:07
  • Here, the difference is that all my sources are in the same Git repository Commented Oct 3, 2019 at 9:13

0

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.