fengxianqi
0.51D
V2EX  ›  程序员

git subtree 在 windows 上很慢

By fengxianqi at 2020 年 12 月 24 日 · 1864 次点击

之前用了 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 条回复  •  2020-12-25 09:18:53 +08:00
fengxianqi
   1
fengxianqi  
OP
   2020 年 12 月 25 日 via Android
subtree 资料太少了,有没大佬来搭救小弟
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
© 2026 V2EX · 25ms · 3.9.8.5