VS2017 encountered error publishing to remote repository: Git failed with a fatal error.

Source: Internet
Author: User
First, Introduction

When I recently configured the work environment for a new notebook, after downloading and installing VS2017, I locally Clone the Leetcode warehouse that I anchored on GitHub.

When I edit something in this workspace and then want to commit (git push), a git for window pops up asking me to enter GitHub's account number and password, and at this point I didn't notice that I entered the wrong account and password, and the following error occurred:

The problem comes, of course, to solve, how to do it.

So I put the error message "Git failed with a fatal error" pasted into the Google search box and did a problem-solving search. StackOverflow ' s solution didn ' t work for me

Interested to see StackOverflow above discussion on this subject can click here VS 2017-git failed with a fatal error
, you can exercise your English proficiency.

Here I will be inside the first several high ticket answer all tried, all not t_t ~ ~ ~ Three, to find the root cause of the problem: or GitHub account information error

Here I fell into the thinking, it is clear that I entered in the VS2017 account password error, then you should find just the account information input box to re-login on it.

So I looked for a long time, and finally found the GitHub account login link in the image below (first menu, team-based management connection, can display this interface):

Here we click Connect ... Link, enter the correct GitHub account and password in the pop-up account Information window:

Now that we've logged in, we're going to click on the icon link to go to manage our workspaces:

Everything is properly configured, now let's try to push our changes again:

Hey, finally succeeded. At this point, the problem finally solved. Iv. Summary

StackOverflow above the people should also have encountered the same problem, should also be quirks entered the wrong account information. Looking at the way they tried it, and the reload of Git and the removal of the pasted files, I didn't feel that the root cause of the problem had been found.

The root cause of this problem is GitHub's account information error.

Then you should exit and log in to your GitHub account again.

It's so simple ^_^ ~ ~ ~

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.