我是 git 和 github 的新手
如果我输入:
git config --list
结果:
...
user.name=//myPass
user.email=//myEmail
下一个:
git push origin main
它要求我输入用户名和密码
输入凭据我得到这个:
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.
继续上面的网址,我不明白我实际上应该做什么
请帮忙
您似乎尚未配置 SSH 密钥。 您是否在 github.com 网站上配置了
SSH
键?
如果没有,您应该先配置它。
ssh-keygen -t rsa -f ~/.ssh/github_id_rsa -C "<your github email>"
命令生成ssh密钥~/.ssh/github_id_rsa.pub
的内容粘贴到你的github网站https://github.com/settings/keys