电脑重装系统之后git pull报错 Permission denied (publickey)
生活随笔
收集整理的這篇文章主要介紹了
电脑重装系统之后git pull报错 Permission denied (publickey)
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
今天我重裝了系統,之后使用git pull報如下的錯誤消息:
git@github.xxx.corp: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.
解決方法
把重裝電腦之前備份到OneDrive上的ssh相關文件,
覆蓋到windows的.ssh文件夾下,問題解決:
2021-11-30
不要用 cmd2,直接用 Windows10 的資源管理器查看,否則看不到這個 .ssh 文件夾。
要獲取更多Jerry的原創文章,請關注公眾號"汪子熙":
總結
以上是生活随笔為你收集整理的电脑重装系统之后git pull报错 Permission denied (publickey)的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 早报:华为P20等迎鸿蒙3.0升级 新款
- 下一篇: 大熊猫丫丫启程画面曝光 网友哽咽:一路平