简体   繁体   English

创建 git 分支时出错 - 偏移量和长度超出了数组的范围

[英]Error creating git branch - Offset and length were out of bounds for the array

I am trying to create git branch from master using Visual Studio 2017.我正在尝试使用 Visual Studio 2017 从 master 创建 git 分支。

Getting below error:出现以下错误:

Offset and length were out of bounds for the array or count is greater than the number of elements from index to the end of the source collection.数组的偏移量和长度超出范围,或者计数大于从索引到源集合末尾的元素数。

Already tried solution as suggested in git - Create Branch From Tag Error to close all VS/Team Explorer instances, and clean cache folder C:\Users\username\AppData\Local\Microsoft\Team Foundation\x.0\Cache.已按照 git - Create Branch From Tag Error 中的建议尝试解决方案以关闭所有 VS/Team Explorer 实例,并清理缓存文件夹 C:\Users\username\AppData\Local\Microsoft\Team Foundation\x.0\Cache。 Then try again.然后再试一次。

No luck with the suggested solution, looking for help/guidance to resolve建议的解决方案没有运气,寻求帮助/指导来解决

If the issue persists (and you are not able to upgrade to Visual Studio 2019 ), you would have to fall back to command-line.如果问题仍然存在(并且您无法升级到Visual Studio 2019 ),您将不得不回退到命令行。

That means:这意味着:

That is a workaround, for sure, but other similar bug reports in Visual Studio are without answer or cannot be reproduced.当然,这是一种解决方法,但 Visual Studio 中的其他类似错误报告没有答案或无法重现。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM