【问题标题】:TortoiseGit how to clone a folder structureTortoiseGit 如何克隆文件夹结构
【发布时间】:2023-04-09 18:51:01
【问题描述】:

我不想克隆整个存储库。我们有一个 300 MB 的存储库,我只想要名为 /sourcecode 的文件夹,而不是下载整个根文件夹。

有没有办法做到这一点?

【问题讨论】:

    标签: tortoisegit


    【解决方案1】:

    该功能本身还不适用于 TortoiseGit:请参阅 issue 1599(2013 年 1 月)。

    所以它应该是一个简单的结帐,除了你需要先编辑.git/info/sparse-checkout,如“Is it possible to do a sparse checkout without checking out the whole repository first?”中所述。

    请注意,msysgit1.8.1 仍然存在问题。见“Why does git sparse checkout leave behind directories?”。

    【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-11-01
    • 2014-12-21
    • 1970-01-01
    • 2014-08-22
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多