Please make sure you have the correct access rights and the repository exists(轉發)

轉發自:https://blog.csdn.net/qq_43705131/article/details/107965888

 

問題:
Please make sure you have the correct access rights and the repository exists 

 

 

原因:
公鑰出問題了,需要刪除.ssh下文件,然後重設置用戶名和郵箱再重新生成ssh公鑰即可解決

 

解決:
步驟一:刪除.ssh下所有所有文件

 

 

 

 步驟二:

 

 

 

 

1.設置用戶名

git config --global user.name ‘xxx’

2.設置用戶名郵箱

git config --global user.email ‘[email protected]

3.查看設置

git config --list

 

 

 

 然後繼續輸入命令:修改後面的郵箱即可

ssh-keygen -t rsa -C "[email protected]"

 

 

 

 

 

配置:github

 

 配置SSH

 

 

完成

 

 

然後再重新去試試提交,問題也就迎刃而解了~~

 


 

 

 

————————————————

版權聲明:本文爲CSDN博主「煌sir」的原創文章,遵循CC 4.0 BY-SA版權協議,轉載請附上原文出處鏈接及本聲明。
原文鏈接:https://blog.csdn.net/qq_43705131/article/details/107965888

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章