Fatal:nullreferenceexception encountered problem occurs after Git upgrade version is recorded

Source: Internet
Author: User

Cause of the problem

Because of the internship, the company asked to upgrade git to the latest version, and then I upgraded.
Here's a little episode before:

Since the local directory where Git was originally downloaded is a Chinese directory, it is best to use the English path when configuring the Git path in webstorm, so you create a new English directory locally and then copy the git from the Chinese directory to the English directory. Probably did not pay attention to before, webstorm inside the time of submission, has been used in the English directory of Git, and then the command line with the Chinese directory of Git (because the environment variable configuration is the Chinese directory). However, this should not be a conflict, because I would like to use a git version. It's OK to use git for two months in such a smooth way (usually doing projects with git tools in webstorm).

The problem happened.

1. Baidu solved a pass:
Today upgraded the version, then the project did part, want to submit (with the webstorm git tool), first git commit , and then again git pull origin 远程分支名 , always stuck, I thought it was webstorm slow problem, and then I restarted the webstorm, got a long time or stuck. I started to try the command line, in the execution of Git pull when the fatal:nullreferenceexception encountered problem, and then I Baidu a pass, inadvertently executed git config --global credential.helper manager , in fact, this is the solution fatal: Taskcanceledexception encountered the problem.
2. Baidu can not solve, and then re-uninstall, and then install Git
For a long time or not, find someone to help, re-build SSH, and then add to the company's git server. It's not going to last. He compared the Git config on his computer to mine and found that Credential.helper was different because I accidentally changed it.
3. After the last change of Credential.helper to store, there is a problem with the remote branch name couldn ' t ' find remote ref
The problem is that the remote branch name is not found and the branch name is wrong.
4. After the last modification of the branch name, it is normal, but the command line git pull will still prompt fatal:nullreferenceexception encountered this, but can pull successfully. There is no hint of this problem with webstorm git commands.

In summary,

In solving the problem, the remedy should not be taken for granted, otherwise there may be more errors.
About git config--global credential.helper store This command, put a link https://git-scm.com/book/zh/v2/Git-%E5%B7%A5%E5%85%B7-%E5%87 %ad%e8%af%81%e5%ad%98%e5%82%a8, this is about Git's credential store.

Store mode stores credentials in clear text on disk and never expires. This means that unless you modify your password on a Git server, you never need to enter your credentials again. The disadvantage of this approach is that your password is stored in clear text in your home directory

Fatal:nullreferenceexception encountered problem occurs after Git upgrade version is recorded

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.