日韩久久久精品,亚洲精品久久久久久久久久久,亚洲欧美一区二区三区国产精品 ,一区二区福利

GitHub push時(shí)提示“fatal: The remote end hun

系統(tǒng) 2842 0

這幾天在學(xué)習(xí)git的使用,順便去網(wǎng)上找個(gè)了git代碼倉(cāng)庫(kù)練練手。http://github.com

注冊(cè)用戶(hù),建立項(xiàng)目什么的都很順利。

然后網(wǎng)站提示如下:

GitHub push時(shí)提示“fatal: The remote end hung up unexpectedly”

首先,配置自己的git。

然后建立項(xiàng)目,添加文件,上傳修改……

然后,喀……扯到蛋了。

上傳時(shí)git提示:

      Agent admitted failure to sign using the key. Permission denied (publickey)
      

fatal: The remote end hung up unexpectedly

查看github的 官方文檔

    #1. Check for SSH keys.

$ cd ~/.ssh

#2. Backup and remove existing SSH keys.

$ lsLists all the subdirectories in the current directory

$ mkdir key_backupmakes a subdirectory called "key_backup" in the current directory

$ cp id_rsa* key_backupCopies the contents of the id_rsa directory into key_backup

$ rm id_rsa*

#3. Generate a new SSH key.

$ ssh-keygen -t rsa -C "your_email@youremail.com"

#4. Add your SSH key to GitHub.

#5. Test everything out.

$ 
    
      ssh -T git@github.com
    
  

大概意思就是你現(xiàn)在本地建立自己的SSH密碼對(duì),然后將公鑰上傳到github就行了。

額,好復(fù)雜……按照提示折騰了一下,果然可以了。

GitHub push時(shí)提示“fatal: The remote end hung up unexpectedly”


更多文章、技術(shù)交流、商務(wù)合作、聯(lián)系博主

微信掃碼或搜索:z360901061

微信掃一掃加我為好友

QQ號(hào)聯(lián)系: 360901061

您的支持是博主寫(xiě)作最大的動(dòng)力,如果您喜歡我的文章,感覺(jué)我的文章對(duì)您有幫助,請(qǐng)用微信掃描下面二維碼支持博主2元、5元、10元、20元等您想捐的金額吧,狠狠點(diǎn)擊下面給點(diǎn)支持吧,站長(zhǎng)非常感激您!手機(jī)微信長(zhǎng)按不能支付解決辦法:請(qǐng)將微信支付二維碼保存到相冊(cè),切換到微信,然后點(diǎn)擊微信右上角掃一掃功能,選擇支付二維碼完成支付。

【本文對(duì)您有幫助就好】

您的支持是博主寫(xiě)作最大的動(dòng)力,如果您喜歡我的文章,感覺(jué)我的文章對(duì)您有幫助,請(qǐng)用微信掃描上面二維碼支持博主2元、5元、10元、自定義金額等您想捐的金額吧,站長(zhǎng)會(huì)非常 感謝您的哦!!!

發(fā)表我的評(píng)論
最新評(píng)論 總共0條評(píng)論
主站蜘蛛池模板: 兴宁市| 炉霍县| 伊川县| 聊城市| 新和县| 白山市| 车致| 大厂| 十堰市| 汉寿县| 西乌珠穆沁旗| 吉林省| 青田县| 昭苏县| 南城县| 涞源县| 民权县| 当雄县| 涞水县| 岳阳县| 扎囊县| 都昌县| 元谋县| 民乐县| 偏关县| 黑河市| 双城市| 尚志市| 和顺县| 定兴县| 安多县| 石台县| 建德市| 忻州市| 保靖县| 乌恰县| 新乡市| 育儿| 筠连县| 淮南市| 天祝|