Windows下启用Git bash,进行Git pull覆盖,提示:
Permission denied (publickey)
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
ssh-keygen -t rsa -C "你的Git对应邮箱地址"
三个回车,无需修改
... Your public key has been saved in /c/Users/你的系统用户名/.ssh/id_rsa.pub
打开这个C盘的文件,复制所有内容
登陆你的GitHub或者BitBucket账号,添加上述内容为新的SSH密钥,保存即可。
windows 10, Git, Git bash, Bitbucket, Github, publickey, Rsa, id_rsa, id_rsa.pub, known_hosts, bitbucket
Git diff, Git status, Git pull
本文发布于:2025-03-06 10:48:00,感谢您对本站的认可!
本文链接:https://www.4u4v.net/it/1741229339582057.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
留言与评论(共有 0 条评论) |