提交git push 的时候报错,Please make sure you have the correct access rights
                                                            生活随笔
收集整理的這篇文章主要介紹了
                                提交git push 的时候报错,Please make sure you have the correct access rights
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.                        
                                這種情況是SSH的問題,通過以下幾步即可解決
1、 刪除本地? .ssh 文件:
一般.ssh文件,放在“C:\Users\用戶名 ”路徑下,直接刪掉即可。
2、 生成新的SSH:
(1)window+R,打開控制面板,輸入where Git,找到Git下面的bin路徑下的bash.exe,啟動并輸入命令ssh-keygen -t rsa -C "xxx" (注:xxx為你git上的用戶名或者郵箱)
(2)出現(xiàn) Enter file in which to save the key (/Users/username/.ssh/id_rsa):,一直按回車,直到出現(xiàn)username/.ssh/id_rsa.pub,和一個圖
3、 添加新的SSH
(1)打開git網(wǎng)頁,點擊頭像-----setting-------SSH
(2)打開1、中的.ssh文件,打開里面的"id_rsa.pub"文件,并將內(nèi)容粘貼到(1)中的空白格子中
4、 在git中重新提交
?
總結
以上是生活随笔為你收集整理的提交git push 的时候报错,Please make sure you have the correct access rights的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
 
                            
                        - 上一篇: 层林叠翠类似的成语
- 下一篇: git 克隆新的 git 地址项目,用
