我正按照以下说明尝试使用VS2013设置git:
How do I add an existing Solution to GitHub from Visual Studio 2013
但是在Home | Unsynced Commits
中,我收到以下错误:
An error occurred. Detailed message: An error was raised by libgit2. Category = Unknown (Error).
No error message has been provided by the native library
考虑到错误信息非常不清楚,我不知道从哪里开始进行故障排除。
编辑:错误不仅发生在Unsynced Commits
,还发生在Changes
和Branches
。
答案 0 :(得分:0)
请参阅此答案:https://stackoverflow.com/a/20004092/3286583
我也遇到了libgit2错误。这是一个问题,因为“使用README.md初始化此存储库”。
要从源代码管理中删除解决方案,请关闭Visual Studio并删除.gitattributes,.gitignore和“.git”文件夹。现在重新打开解决方案,然后使用上面提到的答案方法再次尝试。