graille
graille

Reputation: 1231

How to import a repository into another with Git

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

Answers (1)

pratZ
pratZ

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

Read here for more info

Upvotes: 1

Related Questions