Is it possible to clone a repository without git creating a .git folder inside the local copy of the repository? Sort of like a read only functionality?
You’re looking for git archive
. You either use it within a repository, or pass it the --remote=<URL>
switch, and it gives you a tarball or zip file of the source tree. You can pipe that straight back into tar
if you want to just get a pristine copy of the tree.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With