Objective:
This error delayed me for several hours, finally resolved, do not know why vs official in sync with GitHub is doing so much trouble. Hope to help everyone.
An error has occurred. Detail message: An error is raised by Libgit2. Category = Net (error); An error occurred while sending the request.
Two common types of errors:
1.
VS2012 Update 5 uses Microsoft Git Provider as the plugin, the push Times is wrong:
An error is raised by Libgit2. Category = Net (Error).
This transport isn ' t implemented. Sorry
Issue 1 Workaround:
git remote Set-url origin https://github.com/username/reponame.git
2.
"There was an error. Detail message: An error is raised by Libgit2. Category = Net (Error). "
To the development of a friend to wake up, this error is only a repository location problems.
Issue 2 Workaround:
When a local existing project is pushed to Visual Studio online, although a local repository is created, Visual Studio 2013 does not give any messages telling us to change the GIT default repository location.
The default repository location is \ C Users \ yourname \ Source \ Repos.
You must change the default repository location to where our project is located .
To change the default repository location, follow these steps:
1: Go to the Team Explorer home screen. Click the Settings button:
2: Click Git settings
3: Change the default repository location to where your project is located.
Then sync, pull, push the perfect solution.
VS2013 settings git sync, "there was an error. Detail message: An error is raised by Libgit2. Category = Net (Error). ".