关于git:使用https协议git-push指令报错如何解决

2次阅读

共计 601 个字符,预计需要花费 2 分钟才能阅读完成。

遇到问题: 应用指令 git push 报错, 如下:

remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/en/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/wanghuiwiki/shop.git/'

解决办法:

fatal 提醒参考:https://docs.github.com/en/ge…

github docs 文档中形容说当 Git 提醒你输出明码时, 请输出你的 personal access token

➥创立 personal access token

而后再次尝试 git push 指令; 依据弹框输出用户名和刚保留的 token; 举例: 我这里是
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

如果看到如下成果(没有 fail 谬误), 则表明提交胜利.

[验证]此时能够察看浏览器, 刷新线上仓库的地址;

正文完
 0