简体   繁体   中英

Can a Git reference repository be created for a local repository?

I have access to a Git repository over NFS but the clones I'm making are on a different mount so I can't create hard links to it. I'd rather not do a full clone since it takes a lot of time and disk space. Can I use a reference clone? It seems strange since the reference repository is the same as the target.

git clone --reference=/path/to/repo /path/to/repo

您可以在指定工作树和/或git repo本身( .git )的同时在其他地方进行操作。

git --work-tree=/path/to/repo --git-dir=/path/to/repo/.git xxxx 

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM