SVN Externals in Git. Exist?

4

I have a common layer in my project that will fit two or more companies. I know that in%% exists the Externals option where I reference an external repository in the repository of the company in question.

Is there such a functionality in Git?

    
asked by anonymous 18.04.2016 / 22:29

1 answer

1

The best practice is: publish this external part, dll, lib, framework, etc ..., somewhere and use the "compiled", in quotes because it is not necessarily a compiled object; in your code. For example: You are developing software in modules, and it makes a framework that will be consumed in the modules. The idea is to reuse code, however directly referencing the code in each module you will recompile the whole tree, while publishing the object, for example, on a Nuget server, you will do the version control on the compiled object and consume in your code . In the next module you will consume the same version, not needing to recompile this part of the code.

If your code does not need to be compiled, publishing to a package server will help you maintain the references correctly, being versioned and distributed from a central point.

    
19.04.2016 / 02:40