git报错:fatal: Authentication failed for 'https://gitee.com/ngxcode/wordpress.git/'

Git 2023-07-13 731次浏览

今天改了点东西,正常提交后,从服务器通过git pull拉取代码, 出现以下错误信息:


[root@opt]# git pull
Username for 'https://gitee.com': ngxcode
Password for 'https://ngxcode@gitee.com':
fatal: Authentication failed for 'https://gitee.com/ngxcode/wordpress.git/'


可以输入一下代码,清理机器上的账号密码,然后git pull重新输入账号密码就可以了

git config --system --unset credential.helper

参考文章:https://www.jianshu.com/p/390d076d69b7

git报错:fatal: Authentication failed for 'https://gitee.com/ngxcode/wordpress.git/'

喜欢 (0)
发表我的评论
取消评论
表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
(1)个小伙伴在吐槽
  1. Appreciating the hard work you put into your site and in depth information you present. It's good to come across a blog every once in a while that isn't the same unwanted rehashed material. Fantastic read! I've bookmarked your site and I'm including your RSS feeds to my Google account.
    googletest2024-01-23 23:45 回复 Windows 8.1 | Chrome 103.0.0.0