Reputation: 1231
I want to import the sources of an external repository into my repository. For example from this project: https://github.com/SpongePowered/Sponge
Where "Mixin" is imported. I want to do the same thing, but I don't know how.
Upvotes: 0
Views: 96
Reputation: 3356
Those are called submodules
. They are mostly used when you want to use some other project inside your project without importing the project's code separately.
You can do it for your project by just adding a submodule
to your project.
git submodule add https://github.com/SpongePowered/Sponge
Upvotes: 1