问题:
使用git pull或git push项目到gitee时报错,提示信息如下:
remote: xxx: Incorrect username or password (access token)
fatal: Authentication failed for 'https://gitee.com/xxx/xxx.git/'
解决方案:
- 清空git存留的用户名和密码:
清空git存留的用户名和密码:
- 重新pull或push,按照提示输入用户名和密码即可
- 执行以下命令,后续再pull或push的时候就不用输入用户名和密码了
git config --global credential.helper store