V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
fengxianqi
V2EX  ›  程序员

git subtree 在 windows 上很慢

  •  
  •   fengxianqi ·
    fengxianqi · 2020-12-24 18:40:24 +08:00 · 1137 次点击
    这是一个创建于 1225 天前的主题,其中的信息可能已经有所发展或是发生改变。

    之前用了 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 09:18:53 +08:00 via Android
    subtree 资料太少了,有没大佬来搭救小弟
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2231 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 03:47 · PVG 11:47 · LAX 20:47 · JFK 23:47
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.