title: Git inside git: disconnect inner git, keep files
body: <h2>Summary</h2>
  
  <p>Git inside git. Removed the inner <code>.git</code>s, kept the files. Push. Clone. Folders exist, but are empty.</p>
  
  <h2>What I'm trying to do</h2>
  
  <p>So I'm trying to upload an existing repo to my own git server. The repo has some repos inside of it (that are not a part of the original repo). I don't need these to be connected, what is foremost important is stability - that cloning MUST produce a working copy of the PHP server files.</p>
  
  <h2>How I've tried</h2>
  
  <p>So I remove the <code>.git</code> folder from the inner repos and push the main one into empty git server. Then I clone the newly created remote repo in a new local dir - the folders that used to have <code>.git</code> are empty alltogether (the folders themselves do exist). I've also got GitLab installed and there the folder appears differently than normal folders, with no extra information to be found (notice folder "flashcard"):</p>
  
  <p><img src="https://i.stack.imgur.com/sNR5X.png" alt="enter image description here"></p>
  
  <h2>Question</h2>
  
  <p>Is there any other way of removing git capabilities from folder? What keeps the folder from being just normal files? I am all out of ideas.</p>
  
  <h2>Other info</h2>
  
  <p><code>.gitignore</code> and <code>.git/ifno/exclude</code> don't touch these directories.</p>