Get .git directory without cloning down a repository

北城余情 提交于 2020-01-24 05:18:06

问题


I have a very large git repo which takes a while to clone. However I don't need the full repo, I instead want to examine the .git repo that gets generated. Is there a way I can get the .git folder for this repo without actually cloning it down?


回答1:


I think you mean a bare clone

git clone --bare

It will create the clone without files and the root of the folder will have the contents of the .git folder.

See docs



来源:https://stackoverflow.com/questions/59230881/get-git-directory-without-cloning-down-a-repository

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!