What is a submodule in git?

4

One day I cloned a library in github and there was an instruction to use the git submodule update command.

I have been working with git for some time and I was not aware of this command until then.

What is this submodule command for?

    
asked by anonymous 02.02.2016 / 15:42

1 answer

1

Wallace,

This command is useful when you want to insert another git repository into your main project (a library, for example).

For git the submodule will be a totally independent project. You can edit the contents below the submodule folder, commit, push, etc. Provided you have permission to do so:)

There are alternatives, such as package managers, that organize dependencies in other, more efficient and secure ways.

    
02.02.2016 / 16:23