VS2013 settings git sync, "there was an error. Detail message: An error is raised by Libgit2. Category = Net (Error). ".

Source: Internet
Author: User
Tags home screen

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). ".

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.