码云git remote: Incorrect username or password ( access token )

使用码云将仓库clone到本地,报错信息如下:

D:\123>git push -u origin master
remote: Incorrect username or password ( access token )
fatal: Authentication failed for 'https://gitee.com/asdhfsakfhsaldd/pdcg_epidemic.git'

以为后面会弹出框输入用户名和密码,后来 git push 直接提示用户名或密码错误。

解决办法:

打开电脑的控制面板 --> 所有控制面板项 ----> 凭据管理器

找到普通凭据git:https://gitee.com这一栏,选择编辑,填入正确的用户名和密码,最后点击保存即可。
在这里插入图片描述

Logo

瓜分20万奖金 获得内推名额 丰厚实物奖励 易参与易上手

更多推荐