开发者

Cloning a Git repo without the .git directory

开发者 https://www.devze.com 2023-01-06 13:11 出处:网络
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. Y

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消