2

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?

storm
  • 379
  • 1
  • 9
  • 23
Bo Zhang
  • 23
  • 4
  • 5
    Possible duplicate of [Git Clone Into Another Existing Git Repo](https://stackoverflow.com/questions/10360342/git-clone-into-another-existing-git-repo) – Gino Mempin Apr 12 '18 at 03:48

1 Answers1

4

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).

M. Twarog
  • 2,418
  • 3
  • 21
  • 39