问题
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