新建仓库使用git clone的时候报错
git clone https://github.com/xxxx/xxxx.git
ERROR: You're using an RSA key with SHA-1, which is no longer allowed. Please use a newer client or a different key type.Please see https://github.blog/2021-09-01-improving-git-protocol-security-github/for more information.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
错误:您正在使用RSA密钥与SHA-1,这是不允许的。请使用更新的客户端或不同的密钥类型。请查看https://github.blog/2021-09-01-improving-git-protocol-security-github /了解更多信息。
致命问题:无法从远程存储库读取数据。
请确保您有正确的访问权限
并且存储库已经存在。

解决方法:利用github token的方式
点击右上角的头像选择settings
然后选择菜单最下方的开发者设置(Developer settings)中设置令牌
选择Personal access tokens 然后创建新的令牌
git clone https://密钥@仓库地址
git clone https://123456@github.com/xxxx/xxxx.git