[cpp]view plain
copy
permission denied (publickey).
fatal: the remote end hung up unexpectedly
應該是ssh key過期了吧
試著重新建立ssh key,按以下步驟
[cpp]view plain
copy
ssh-keygen
注意短橫線前後都沒有空格
接著一切都預設,它會在把ssh key 儲存在
[cpp]view plain
copy
~/.ssh/id_rsa.pub
開啟這個檔案,把裡面的所有的內容都拷貝到你的github**的ssh key裡
[cpp]view plain
copy
gedit ~/.ssh/id_rsa.pub
在github的右上角edit your profile 裡找到ssh key,然後add ssh key,把東西拷貝到key就可以了,title隨便填。
接著就繼續你的push吧
git生成SSH秘鑰
進入git bash 輸入cd ssh 沒有的話,自己建立mkdir ssh,然後進入該資料夾完成生成秘鑰步驟 配置全域性的name和email,這裡是的你github或者bitbucket的name和email git config global user.name xkwg git config...
git生成公匙 秘鑰
1.執行 git bash 客戶端 輸入 cd sshcd ssh ls 這兩個命令就是檢查是否已經存在 id rsa.pub 或 id dsa.pub 檔案 2.git config global user.name 使用者名稱 3.git config global user.email 郵箱 ...
git 檢視自己秘鑰 Git秘鑰問題
簡介 在管理git專案上,很多時候都是直接使用https url轉殖到本地,當然也有有些人使用ssh url轉殖到本地。這兩種方式的主要區別在於 使用https url轉殖對初學者來說會比較方便,複製https url然後到git bash裡面直接用clone命令轉殖到本地就好了,但是每次fetch...