windows不支持 git输入密码,解决方法

2020年windows不支持 git输入密码的邮件通知

Hi @wutiantian,

You recently used a password to access the repository at wutiantian/ReadingNotes with git using git/2.29.2.windows.3.

Basic authentication using a password to Git is deprecated and will soon no longer work. Visit https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/
	
Token authentication requirements for Git operations - The GitHub Blog
Last year at GitHub Universe, we introduced the GitHub Security Lab, which is committed to contributing resources, tooling, bounties, and security research to secure the open source ecosystem.
github.blog
for more information around suggested workarounds and removal dates.

Thanks,
The GitHub Team

解决办法:使用SSH密钥

生成ssh密钥

打开git-bash输入命令:

ssh-keygen -t rsa -b 4096

命令行一路回车完成操作,如图中红框位置。<

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值