Solve the problem that the git operation prompts that the user name and password are wrong under windows

      When the code is switched from one platform to another, two steps are required. The first step is to update the git warehouse address and modify it in the .git/config file of the project. After this step is completed, the code can be pushed Arrived at the new warehouse, here is the key point.

      Generally, when you push the code to the new platform code repository for the first time, the system will prompt you to enter the username and password. Note: 1. The username and password here are the username and password of the code repository platform, which has nothing to do with git. is one;

2. If you accidentally enter the wrong username and password, the system will no longer pop up a box to prompt, but will only prompt " username and password error "      during git operation , because the username and password information entered for the first time has been saved in In the credentials of the windows system, if you want to modify it, you must go there to modify it, as shown in the figure:

It can be edited directly or deleted. After deleting, if you operate git again, a box will pop up asking you to re-enter your username and password. That’s probably it!

Guess you like

Origin blog.csdn.net/playboyanta123/article/details/132674381