Search code examples
git

How to get a plain copy of a Git repository?


How do I clone (copy) a Git repository, so that the result isn't a Git repository, but an untracked copy (no .git directories)?

I have a repository on GitHub and I would like to know what options/flags to download the file so that they're on my local machine and are not a repository (no .git directories). Just the files - no VCS data.

I tried using the --bare flag, but didn't seem to work.


Solution

  • There's a 'download zip' option in the same dropdown from where the git clone URL is copied. This should help.