Git克隆远程仓库的时候,报错:
remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/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/ElisabettaPigni/monte-carlo-analysis-exiobase-Brightway-.git/'
解决方案:
1. GitHub首页右上角,选择"Settings"
2. 左下角选择“Developer settings”
3. 左侧选择“Personal access tokens”,选择“Tokens(classic)”
4. 新建一个token,然后复制token值(很重要,关了窗口就没了,再也找不到了!!!)
5. 拷贝远程仓库的时候,输入用户名,然后要求输入密码的时候,把刚刚复制的token值粘贴,然后就可以了。
网友评论