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.
After running
git clone https://example.com/repo.git -b my-branch
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?