首页 > 其他分享 >强制推送本地分支覆盖远程失败git push origin master --force报错fatal: Authentication failed for 'https://github.

强制推送本地分支覆盖远程失败git push origin master --force报错fatal: Authentication failed for 'https://github.

时间:2022-09-06 07:55:06浏览次数:72  
标签:origin git -- xxx master 报错

当我想把本地分支强制性推到远程的master分支,执行 git push origin master --force 命令时,报错如下:

解决办法:重新配置用户名和邮箱

git config --global user.name "用户名"
git config --global user.email "邮箱"

标签:origin,git,--,xxx,master,报错
From: https://www.cnblogs.com/huangkenicole/p/16660350.html

相关文章