Reputation: 125892
Say I've got a project under git version control. Within that project, I have a folder called "third_party_tools." And within that folder, I've got a folder called "some_open_source_tool," which was cloned from github.
Will this cause problems? Can I check the tool into git for my project and retain the ability to pull from github if there are updates? Or is it not permitted to have one git repo inside another?
Upvotes: 2
Views: 183
Reputation: 121
If you do the clone using the --recursive
flag, you'll get what you need, Nathan.
Upvotes: 0
Reputation: 332736
It is permitted to have one git repository inside another. If you want to check the tool into your outer project, I would recommend you look into submodules, which allow you to keep nested git projects in sync properly.
Upvotes: 5