Git提交远程代码时出现remote Incorrect username or password ( access token )

 

在使用Git进行项目代码提交的最后一步操作的时候,出现了一个问题,remote: Incorrect username or password ( access token )

git出错截图:

Git提交远程代码时出现remote Incorrect username or password ( access token )

造成这种错误的原因是,由于之前重置了Git账户的密码,忘记修改计算机的凭据导致这个问题的出现。

解决方案是:

打开电脑的控制面板–>用户账户–>管理Windows凭据

Git提交远程代码时出现remote Incorrect username or password ( access token )
Git提交远程代码时出现remote Incorrect username or password ( access token )
Git提交远程代码时出现remote Incorrect username or password ( access token )

找到普通凭据中自己的账号信息,选择编辑,填入正确的用户名和密码,最后点击保存即可。

Git提交远程代码时出现remote Incorrect username or password ( access token )

最后重新使用git的push指令,成功将代码提交。

Git提交远程代码时出现remote Incorrect username or password ( access token )