title: How to remove git related data from a git clone?
body: <p>I want to clone a specific branch of a git repository and copy it to my own private git repository. The original repository is very huge and has a lot of branches, which I don't need at all. I also don't need any file history. Forking is not an option, because forked repositories are not allowed to be private on github.</p>
  
  <p>After running</p>
  
  <pre><code>git clone https://example.com/repo.git -b my-branch
  </code></pre>
  
  <p>how can I get rid of all git-specific information in the local copy, keep only my-branch, as if I just created the contained files?</p>