Limit on number of git branches

瘦欲@ 提交于 2019-12-04 10:03:07

问题


I am musing about building a big system on top of git for various reasons but mainly convenience.

But as part of the implementation I would end up making millions of branches and branching and merging between them. Can git actually scale this way? I always hear "Branches are free" but I have to wonder if this is really true x1,000,000? Can git actually create a theoretical unlimited number of branches?


回答1:


Yes, branches are free. Branching and merging is very easy.

The scalability issues mentioned before comes only when synchronizing a vast amount of branches through the network (git fetch, git pull, git push). Locally you shouldn't have any problem.




回答2:


There was a thread about scalability problems in this area on the git mailing list last year, as I recall there were some improvements made but I don't recall off hand what the performance was like with the changes that got incorporated into newer versions as a result.

Here's a link to an archive of that thread:

http://git.661346.n2.nabble.com/Git-is-not-scalable-with-too-many-refs-td6456443.html



来源:https://stackoverflow.com/questions/13095482/limit-on-number-of-git-branches

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!