gpt4 book ai didi

git-gui 克隆 : What is the difference of each "Clone Type"?

转载 作者:太空狗 更新时间:2023-10-29 14:17:26 25 4
gpt4 key购买 nike

使用标准的 git-gui (v 0.20.GITGUI),当你想克隆一个存储库时,有三个“克隆类型”选项:

  • 标准
  • 完整副本
  • 共享

Git-Gui clone options

这三种类型有什么区别?
这是 git-gui 的东西,还是有等效的命令行?

最佳答案

这些消息来自commit ab08b36, gitgui-0.9.0, Sept. 2007 (十年前!),作者 Shawn O. Pearce (spearce)

肖恩当时评论道:

If the source repository is on the local disk we try to use a hardlink to connect the objects into the new clone as this can be many times faster than copying the objects or packing them and passing the data through a pipe to index-pack.
Unlike git-clone, we stick to pure Tcl [file link -hard] operation thus avoiding the need to fork a cpio process to setup the hardlinks.

If hardlinks do not appear to be supported (e.g. filesystem doesn't allow them or we are crossing filesystem boundaries) we use file copying instead.

所以没有精确 git clone 等价物。
但是 shared 和 hardlink 只适用于克隆本地 repos,相当于 git clone -l and git clone --shared .
完整将复制所有包文件。

关于git-gui 克隆 : What is the difference of each "Clone Type"?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41760688/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com