Git将子模块更改为原点时速度很慢 [英] Git is slow on pushing submodules change to origin

查看:71
本文介绍了Git将子模块更改为原点时速度很慢的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用git,那里有一个包含大约40个(!)子模块存储库的存储库.

I'm using git where I have a repo containing about 40 (!) submodule repos.

每当我执行git git push origin master时,执行remote: Processing changes的动作都非常慢.

Whenever I do a git git push origin master it's very slow on the remote: Processing changes action.

有什么办法可以加快推进速度吗? Gerrit用作后端,但是我要重写HEAD:refs/for/master来缩短审阅机制.

Is there any way I can speed up the push? Gerrit is used as a backend but I'm overriding the HEAD:refs/for/master to short circuit the review mechanism.

PS.我知道我有很多子仓库,但这可能不是最佳选择,但这就是事实,问题不关乎:-)

PS. I know I have alot of sub repos and that might not be optimal, but that's how it is and the question isn't about this :-)

推荐答案

确定发现了问题:

最高回购是跟踪master分支.这意味着当我在每个子仓库中推送原始数据时,顶部仓库会自动更新(在Gerrit中).

The top repo was tracking master branch. This means when I push to origin in each sub repo the top repo is updated automatically (in Gerrit).

我不明白这一点,所以我也对顶级仓库进行了推送,这导致了很长的处理时间.

I didn't understand this so I also did a push on the top repo and this caused the very long processing time.

不知道为什么.

这篇关于Git将子模块更改为原点时速度很慢的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆