• 请不要在回答技术问题时复制粘贴 AI 生成的内容
fengxianqi
0.51D
V2EX  ›  程序员

git subtree 在 windows 上很慢

  •  
  •   fengxianqi ·
    fengxianqi · Dec 24, 2020 · 1596 views
    This topic created in 1971 days ago, the information mentioned may be changed or developed.

    之前用了 git submodule,觉得提交麻烦,而且这边子库也不需要有版本的概念,所以用了 subtree,但发现在 mac 上用还可以接受,但 windows 的同事 push 一次巨慢( 10 分钟以上),也用了 split 命令,split 一次也比较久。所以想问下大家,是我们的姿势不对吗。

    subtree 添加后,为简化命令,我们是直接写几个命令放在 package.json 上通过 npm run 来跑的。

    "pull:common": "git subtree pull --squash --prefix=src/common git 地址 master",
    "push:common": "git subtree push --prefix=src/common git 地址 master",
    "split:common": "git subtree split --prefix=src/common"
    
    1 replies    2020-12-25 09:18:53 +08:00
    fengxianqi
        1
    fengxianqi  
    OP
       Dec 25, 2020 via Android
    subtree 资料太少了,有没大佬来搭救小弟
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1092 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 22:54 · PVG 06:54 · LAX 15:54 · JFK 18:54
    ♥ Do have faith in what you're doing.