current position:Home>Fatal authentication failed for 'httpxxxx Git 'solution

Fatal authentication failed for 'httpxxxx Git 'solution

2022-05-15 02:08:03Wooden house x

git Pull code to report error fatal: Authentication failed for ‘http:xxxx.git’' Solution

1. Demand background
  • Recently, there is something wrong with your host , So I changed a host , Then pull the project under development again on the changed host and run it .

  • After logging in again git After the account number , Pull the code , After entering, first prompt for the password , Enter your own git Password enter , Continue to remind , Input 3 After times, the following error log appears :

  • fatal: Authentication failed for 'http:xxxx.git''
    
Solution
  • The most common reason for this problem is because of your own git The account information is inconsistent with the account information first registered by the current host , That's why there are people who have logged in to their own git account number , And when pulling the code, you have entered yourself according to the prompt git However, the account and password information still reported an error , So the solution is to reset the on the current host git Account information, and then enter your own account information , The operation is as follows :

  • 
    //  Get into git Command line , Enter the following command , And then go back , When you pull the code again, you will be prompted to enter the name of the current host git Account information , Follow the prompts to enter your own git Just enter the account information :
    git config --system --unset credential.helper
    
    
  • Here we are , The problem is solved .

copyright notice
author[Wooden house x],Please bring the original link to reprint, thank you.
https://en.qdmana.com/2022/132/202205120527036952.html

Random recommended