简体   繁体   中英

Visual Studio 2012 Integration with Git Plugin

I have tried to configure GitHub with Visual Studio 2012 update 4. I get the following error message:

An error occurred. Detailed message: An error was raised by libgit2. Category = Os (Error).Could not open C:/Auto/Automation/Automation/DevAutomation/............/........./......../....../...../........./TestSuite/.../OrderSuite/OrderTestParent/ScenarioLibrary/content.txt for writing: The data area passed to a system call is too small.

When I run the command below in Git bash (GIT Client)(following the advice from this answer ), it works fine:

$ git config --system core.longpaths true

But when I tried to clone the Visual Studio 2012 with Git HUB, I'm encountering the same issue. I searched for similar problems and the solution given is to edit directly your .git/config file:

[core]
    repositoryformatversion = 0
    filemode = false
    (...)
    longpaths = true        <-- (add this line under core section)

To conclude, I have added the below in the .gitattributes file in Visual Studio Team Explorer ( Home > Settings > Git Settings ).

[core]
* longpaths = true

But still didn't work. Any ideas?

当您超过MAX_PATH的长度时,请尝试将整个项目移动到其他位置(使用较短的路径)。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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