Git error: remote: Access denied
fatal: unable to access 'https://gitee.cohe requested URL 403
The approximate reason is that it was changed before
It may be because I have configured ssh in git bash before, and the system has set the user pointing to git to another location, so every time a push operation is performed, the user saved locally may be read by default.
The local user credentials do not match the remote warehouse, you can delete the local user credentials and log in again
The solution is as follows: 1 Find the Control Panel 2 Credential Manager 3 Windows Credentials (internal login credentials)
after deletion
Open the terminal and enter git remote -v (meaning to view the remote warehouse address)
Then enter git remote rm origin to select the one to delete (delete the remote address)
Then add a new address: git remote add origin https://gitee.com/chenfangitee/vue-9.29.git
At this time, a pop-up window will pop up, follow the prompts on the new code cloud warehouse, re-enter the git account number and password, and enter it
Then execute the git push -u origin master upload command and it will be ok