1. 程式人生 > >git遇到的問題之“Please make sure you have the correct access rights and the repository exists.

git遇到的問題之“Please make sure you have the correct access rights and the repository exists.

Please make sure you have the correct access rights and the repository exists.

然後谷歌了一下,原來是ssh key有問題,連線不上伺服器~~

參閱了很多的答案,發現寫的都不是很完整,自己東摸索西摸索搞定了,怕忘記,記錄一下

1、首先我得重新在git設定一下身份的名字和郵箱(因為當初都忘了設定啥了,因為遇到坑了)進入到需要提交的資料夾底下(因為直接開啟git Bash,在沒有路徑的情況下,根本沒!法!改!剛使用git時遇到的坑。。。)

git config –global user.name “yourname”

git config –global user.email“[email protected]om”

注:yourname是你要設定的名字,[email protected]是你要設定的郵箱。

2、刪除.ssh資料夾(直接搜尋該資料夾)下的known_hosts(手動刪除即可,不需要git)

3、git輸入命令

$ ssh-keygen -t rsa -C “[email protected]”(請填你設定的郵箱地址)

接著出現:
Generating public/private rsa key pair.
Enter file in which to save the key (/Users/your_user_directory/.ssh/id_rsa):

請直接按下回車

然後系統會自動在.ssh資料夾下生成兩個檔案,id_rsa和id_rsa.pub,用記事本開啟id_rsa.pub

將全部的內容複製

進入ssh設定
在key中將剛剛複製的貼上進去

點選add ssh key,

ok!

5、在git中輸入命令:

ssh -T [email protected]

然後會跳出一堆話。。

輸入命令:yes

回車

然後就會提示你成功了~~

淚牛滿面~~

最後退出git重新進入路徑提交一下就可以了~~

相關推薦

(轉)git遇到的問題Please make sure you have the correct access rights and the repository exists.”

key pair 遇到 重新 出了 csdn ssh-key vat work 直接 對於git的提交一直很小心翼翼,感覺一不小心就會踩到莫名的坑。 這不, 某天commit 就遇到了On branch master nothing to commit (wor

git遇到的問題Please make sure you have the correct access rights and the repository exists.

Please make sure you have the correct access rights and the repository exists. 然後谷歌了一下,原來是ssh key有問題,連線不上伺服器~~ 參閱了很多的答案,發現寫的都不是很完

[Git]Please make sure you have the correct access rights and the repository exists

perm not 配置 兩個 需要 acc repos http 機器 這個問題是這樣,需要在已有github賬號的A機器上,再創建一個github賬號,新賬號創建完畢,將代碼通過機器A push上之後,再另一臺機器B,clone 這個項目時報出了如下錯誤: Permiss

Git clone時出現Please make sure you have the correct access rights and the repository exists.問題已解決。

already 下載 cor 兩個 .com pair 賬戶 same 使用 看了好多資料終於搞定了git 中clone命令報錯這個問題,廢話不多說直接上步驟希望對大家有幫助。 1 刪除.ssh文件夾(直接搜索該文件夾)下的known_hosts(手動刪除即可

git下載代碼遇到的‘Please make sure you have the correct access rights and the repository exists’問題

log strong nbsp urn 成功 參考 刪除 ron mail 接著昨天的搭建博客,今天想直接把vuepress克隆到我的電腦上,結果出現了問題 忘記截圖了,反正就記得這麽一句話:‘Please make sure you have the correct

git 訪問自建gitlab報錯:Please make sure you have the correct access rights and the repository exists.

1.首先設定git身份的名字和郵箱:     git config --global user.name "yourname"     git config --global user.email“[email protected]"

git下載程式碼遇到的‘Please make sure you have the correct access rights and the repository exists’問題

接著昨天的搭建部落格,今天想直接把vuepress克隆到我的電腦上,結果出現了問題 忘記截圖了,反正就記得這麼一句話:‘Please make sure you have the correct access rights and the repository exists’ 在網上搜索了一

git遇到的問題:Please make sure you have the correct access rights and the repository exists.解決方案

輸入:git push -u origin master命令出現以下類似內容 Theauthenticity of host 'github.com (13.250.167.23)' can't be established. RSAkey fingerprint is SHA256:nTh

git pull出錯fatal:Please make sure you have the correct access rights.and the repository exists.

初學liunx,真是坑爹很多了,每天的錯誤。。。 Warning: Permanently added the RSA host key for IP address ‘192.168.25.*’ to the list of known hosts. Pe

git "Could not read from remote repository.Please make sure you have the correct access rights."解決方案

tpc 覆蓋 com 設置 _id pub ould ack ref 我們在使用git clone 或其他命令的時候,有時候會遇到這類問題,如圖: fatal: Could not read from remote repository. Please make s

git clone報錯 "Could not read from remote repository..Please make sure you have the correct access

1.下載git,使用命令: yum install git 2.配置git: 1 git config --global user.name "Your Name" 2 git config --global user.email "[email protected]"

git "Could not read from remote repository.Please make sure you have the correct access rights."解決方案

我們在使用git clone 或其他命令的時候,有時候會遇到這類問題,如圖: fatal: Could not read from remote repository. Please make sure you have the correct access rig

Git"Could not read from remote repository.Please make sure you have the correct access rights."解決方案

我們在使用Git clone 或其他命令的時候,有時候會遇到這類問題,如圖: fatal: Could not read from remote repository. Please make sure you have the correct access ri

Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights

please sudo _id ima upd cal .com root pin 第一次提交遇到這樣的情況,怎麽回事呢,我在github上提交了ssh key 的啊。 排查先看看能不能解析, 1.先 ping https://github.com 把ip添加到 ho

Node.js報錯 configure error: No acceptable C compiler found! Please make sure you have

報錯:Node.js configure error: No acceptable C compiler found!Please make sure you have a C compiler installed on your system and/orco

Could not read from remote repository.Please make sure you have the correct access rights.解決方法

我們在使用git clone 或其他命令的時候,有時候會遇到這類問題,如圖:fatal: Could not read from remote repository.Please make sure you have the correct access rightsand

Please make sure you have the correct access rights

A "Permission denied" error means that the server rejected your connection. There could be several reasons why, and the most common examples are explai

解決VM提示:VMware Workstation cannot connect to the virtual machine. Make sure you have rights to run the program, access all directories the program uses

問題: 在開啟虛擬機器的時候報: VMware Workstation cannot connect to the virtual machine. Make sure you have rights to run the program, access all directories the progr

開啟虛擬機器所報的錯誤:VMware Workstation cannot connect to the virtual machine. Make sure you have rights to run the program, access all directories the program

當我們開啟虛擬機器時出現錯誤: VMware Workstation cannot connect to the virtual machine. Make sure you have rights to run the program, access all directories the program

PL/SQL連線報錯問題 make sure you have the 32 bits oracle client installed

Windows 64位下裝Oracle 11g 64位,PLSQL Developer使用出現以下問題: 1、Database下拉框為空:   2、強制輸入使用者名稱、密碼及Database,登入彈出: Initialzation error Could not i