Ivan
Ivan

Reputation: 105

How to clone git repo that have other repo in it?

I'm trying to clone https://github.com/ornicar/lila to my PC. That project have a link to other project in https://github.com/ornicar/lila/tree/master/modules/chess and when I simply do git clone [email protected]:ornicar/lila.git it doesn't clone chess content. How to fix that?

Upvotes: 0

Views: 44

Answers (1)

Daiku
Daiku

Reputation: 1227

What you want is git submodule update --init after you clone the main repo. It will fetch the other repo and place it in the proper location.

Upvotes: 2

Related Questions