Bo Zhang
Bo Zhang

Reputation: 23

Cloning git repository inside another git repository

I cloned a repo from github (for example 'hello world') the I cloned another repo inside the hello world like this :

$ git clone ********hello_world
$cd ~/hello_world
~/hello_world $ git clone  ***************another_repo

What's the relationship between them?
What if I delete the .git of the hello world?

Upvotes: 2

Views: 2803

Answers (1)

M. Twarog
M. Twarog

Reputation: 2611

Those repositories do not influence each other unless you set inner repository as submodule of the outer repository. If submodule is not set, the outer repository will recognize inner repository as a separate entity (because it contains separate .git directory).

Upvotes: 4

Related Questions