国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

git push報錯:gnutls_handshake() failed: The TLS connection was non-properly terminated

這篇具有很好參考價值的文章主要介紹了git push報錯:gnutls_handshake() failed: The TLS connection was non-properly terminated。希望對大家有所幫助。如果存在錯誤或未考慮完全的地方,請大家不吝賜教,您也可以點擊"舉報違法"按鈕提交疑問。

首先你在本地或服務(wù)器git clone了一套代碼,或者是clone了自己的代碼準備更新,更新過內(nèi)容后,你想用git push origin main這個命令,將本地代碼推送到github上,結(jié)果報錯gnutls_handshake() failed: The TLS connection was non-properly terminated。

我首先檢查了一下自己的命令,沒有錯,通過了git add . 也進行了git commit -m "update",最后用了git push origin main,第一次push的時候還好使,第二次就報錯了。

短暫解決方案

在命令行中輸入這個命令,更新。但這種方法無法解決根本問題,第二天又不行了。

sudo apt-get update

靠譜解決方案——配置ssh

  1. 首先檢查服務(wù)器是否有ssh密鑰,如果有,在~/.ssh/目錄下可以看到id_rsa和id_rsa.pub,其中id_rsa.pub是公鑰。如果沒有通過以下命令生成,生成后可以在~/.ssh/目錄下看到id_rsa和id_rsa.pub。
    ssh-keygen -t rsa -C "youremail@example.com"
  2. 將id_rsa.pub文件中的內(nèi)容復(fù)制到github。找到github的settings,找到ssh and GPG keys,創(chuàng)建一個新的ssh key,將從id_rsa.pub文件中復(fù)制的內(nèi)容,粘貼到剛剛創(chuàng)建的ssh key中。

    gnutls_handshake() failed: the tls connection was non-properly terminated,踩坑筆記,git

    gnutls_handshake() failed: the tls connection was non-properly terminated,踩坑筆記,git

  3. 回到系統(tǒng)命令行中用該命令測試
    ssh -T git@github.com

    如果出現(xiàn)這個結(jié)果就說明成功了,如果出現(xiàn)其他的,沒連上之類的,可能是ssh key有問題gnutls_handshake() failed: the tls connection was non-properly terminated,踩坑筆記,git

  4. 重新設(shè)置遠程倉庫的ssh連接,再push就成功了

    git remote rm origin
    git remote add origin git@github.com:your_username/your_repository_name.git
    git push origin main

?記錄自己踩過的坑,下次邁過去就好啦~文章來源地址http://www.zghlxwxcb.cn/news/detail-847951.html

到了這里,關(guān)于git push報錯:gnutls_handshake() failed: The TLS connection was non-properly terminated的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來自互聯(lián)網(wǎng)用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務(wù),不擁有所有權(quán),不承擔(dān)相關(guān)法律責(zé)任。如若轉(zhuǎn)載,請注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實不符,請點擊違法舉報進行投訴反饋,一經(jīng)查實,立即刪除!

領(lǐng)支付寶紅包贊助服務(wù)器費用

相關(guān)文章

  • 【git 報錯】:git push 提示error:failed to push some refs to “xxxxxx“

    【git 報錯】:git push 提示error:failed to push some refs to “xxxxxx“

    在git push操作提交一個文件到遠程庫的時候報錯:error: failed to push some refs to ‘https://gitee.com/gitee-zhangchq/stm32.git’ 翻譯: 錯誤:無法將某些引用推送到’https://gitee.com/gitee-zhangchq/stm32.git’ 由于這是一個在gitee上面新創(chuàng)建的一個遠程庫,然后在創(chuàng)建遠程庫的時候還選擇了自動生

    2024年02月17日
    瀏覽(25)
  • git push報錯:error: failed to push some refs to ‘https:/

    根據(jù)提示,翻譯是要合并的庫和本地庫不一致,要先執(zhí)行g(shù)it pull操作 在網(wǎng)上找了一些解決方案,都是執(zhí)行如下指令 但是并沒有解決我的問題,也沒有一些更好的解決方案。 仔細思考了下,我要并入的并不是master這個主分支,而是我創(chuàng)建的一個新分支shuwwl_new_br 于是將上述指令

    2024年02月11日
    瀏覽(31)
  • 【問題解決】Git報錯:failed to push some refs to xxxxx

    【問題解決】Git報錯:failed to push some refs to xxxxx

    To https://xxxxxxxxxxxx.git ! [rejected] master - master (fetch first) error: failed to push some refs to ‘https://xxxxxxxx.git’ hint: Updates were rejected because the remote contains work that you do hint: not have locally. This is usually caused by another repository pushing hint: to the same ref. You may want to first integrate the remote changes hin

    2023年04月15日
    瀏覽(43)
  • git提交報錯error: failed to push some refs to ‘git url‘

    git提交報錯error: failed to push some refs to ‘git url‘

    想把本地倉庫提交到遠程倉庫,報錯信息如下 git提交報錯信息 error: src refspec master does not match any error: failed to push some refs to \\\'git url\\\' 錯誤原因: 我們在創(chuàng)建倉庫的時候,都會勾選“使用Reamdme文件初始化這個倉庫”這個操作初識了一個README文件并配置添加了忽略文件。當(dāng)點擊創(chuàng)

    2024年01月22日
    瀏覽(27)
  • git 常遇到的幾種錯誤(failed to push some refs to ,The requested returned error: 403)

    git 常遇到的幾種錯誤(failed to push some refs to ,The requested returned error: 403)

    一、error: failed to push some refs to ‘https://gitee.com/xxx/xxx.git‘錯誤的解決方法。 解決方法1:直接輸入git push origin master -f 強行把本地的分支覆蓋掉遠程倉庫的分支 解決方法2:出現(xiàn)錯誤的主要原因是gitee(github)中的README.md文件不在本地代碼目錄中 ,所以我們只需要git pull --rebase

    2024年02月13日
    瀏覽(24)
  • 【git報錯】git push時候報錯fatal: unable to access ‘http://xxxxxxxxxxxx.git/‘: Failed to connet to xxxxx

    【git報錯】git push時候報錯fatal: unable to access ‘http://xxxxxxxxxxxx.git/‘: Failed to connet to xxxxx

    在執(zhí)行g(shù)it push origin master要把代碼推送到遠程庫的時候出現(xiàn)了報錯:fatal: unable to access ‘http://xxxxxxxxxxxx.git/’: Failed to connet to xxxxx 先是在博客上(https://blog.csdn.net/cubejava/article/details/120631396)看到是說:一般是這是因為服務(wù)器的SSL證書沒有經(jīng)過第三方機構(gòu)的簽署,所以才報錯,

    2024年02月16日
    瀏覽(17)
  • git使用push命令報錯-error: failed to push some refs to ‘https://gitee.com/MFLU/graduation_design.git‘

    當(dāng)我們使用git操作向遠程倉庫push代碼時,可能會報錯: hint: not have locally. This is usually caused by another repository pushing hint: to the same ref. You may want to first integrate the remote changes hint: (e.g., \\\'git pull ...\\\') before pushing again. hint: See the \\\'Note about fast-forwards\\\' in \\\'git push --help\\\' for details. 主要原因

    2024年02月04日
    瀏覽(15)
  • git push 報錯unable to access https://gitee.com/****/***.git/ : The requested URL returned error:403

    git push 報錯unable to access https://gitee.com/****/***.git/ : The requested URL returned error:403

    對于git小白來說,第一次使用git總會報各種稀奇古怪的錯誤。 最近的操作git的時候,就報了如上的錯誤fatal: unable to access ?https://gitee.com/****/***.git/ : The requested?URL returned error:403 對于這樣的錯誤無非就是無權(quán)訪問的問題, 解決的方法我試過的只有兩種 : 1 .自己的git賬戶本身

    2023年04月08日
    瀏覽(33)
  • 【Git】push分支報錯:fatal: The current branch 當(dāng)前分支名 has no upstream branch

    示例代碼: feature/file 是分支名 中文釋義: 在于當(dāng)前這個分支沒有和任何的倉庫發(fā)生關(guān)聯(lián),origin是倉庫的一個指針,需要將當(dāng)前的分支與這個指針之間形成關(guān)聯(lián)。 直接允許以下命令即可 執(zhí)行之后會在 github 上自動新建一個 feature/file 的分支。

    2024年02月11日
    瀏覽(28)
  • git push報錯:![rejected] master -> master(non-fast-forward) error:failed to push some refs to XXX

    背景 本地git庫,要push到gitlab上,執(zhí)行完如下命令后報錯: 報錯信息為: 原因 從本地代碼創(chuàng)建遠程倉庫的時候,添加了README.md,但本地倉庫中并沒有該文件。 解決方案 添加忽略不相干的歷史選項,將遠程倉庫中的文件重新拉取到本地,這樣本地文件會出現(xiàn)README.md: 之后再

    2024年02月04日
    瀏覽(34)

覺得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包