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

fatal: bad object refs/remotes/origin/master

這篇具有很好參考價(jià)值的文章主要介紹了fatal: bad object refs/remotes/origin/master。希望對(duì)大家有所幫助。如果存在錯(cuò)誤或未考慮完全的地方,請(qǐng)大家不吝賜教,您也可以點(diǎn)擊"舉報(bào)違法"按鈕提交疑問。

從gitlab pull代碼的時(shí)候,報(bào)了下面錯(cuò)誤

$ git pull
remote: Enumerating objects: 27, done.
remote: Counting objects: 100% (27/27), done.
remote: Compressing objects: 100% (8/8), done.
remote: Total 14 (delta 5), reused 9 (delta 0), pack-reused 0
Unpacking objects: 100% (14/14), 997 bytes | 27.00 KiB/s, done.
fatal: bad object refs/remotes/origin/master
error: http://192.168.99.220:8880/code/server/*******************.git did not send all necessary objects

解決辦法

 mv .git/refs/remotes/origin/master /tmp
$ git gc

然后重新選擇遠(yuǎn)程分支

$ git branch --set-upstream-to=origin/master master

然后$ git pull 會(huì)打開一個(gè)文件讓你填寫合并信息,我直接關(guān)掉了

然后就正常了,問題的原因還沒有搞清楚,猜測(cè)可能是我在沒有網(wǎng)絡(luò)的情況下進(jìn)行了commit和 push 操作文章來源地址http://www.zghlxwxcb.cn/news/detail-638089.html

到了這里,關(guān)于fatal: bad object refs/remotes/origin/master的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

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

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

相關(guān)文章

  • 踩坑:gitee報(bào)錯(cuò)fatal: Couldn‘t find remote ref master。

    踩坑:gitee報(bào)錯(cuò)fatal: Couldn‘t find remote ref master。

    在通過vscode提交代碼到遠(yuǎn)程倉庫的時(shí)候,報(bào)了這個(gè)錯(cuò):fatal: Couldn\\\'t find remote ref master。 然后,我在網(wǎng)上找了超級(jí)多方法,基本都是檢查倉庫配置,我貼一下,看大家是否需要: 1.檢查本地GIT的配置 使用以上命令來檢查本地的用戶名和郵箱是否填寫正確 2.檢查遠(yuǎn)程倉庫配置 如

    2024年02月11日
    瀏覽(40)
  • 【Git異常】Push master to origin/master was rejected by remote

    【Git異?!縋ush master to origin/master was rejected by remote

    今天新分配的git賬號(hào)和新項(xiàng)目,拉下來代碼更改后發(fā)現(xiàn)push不上去, 設(shè)置中 選擇 Prorected Branches Allowed to push 更改 選擇一個(gè)角色即可 ,而后 un protect

    2024年02月06日
    瀏覽(44)
  • git cherry-pick 報(bào)錯(cuò) fatal: bad object [commitID]

    git cherry-pick 報(bào)錯(cuò) fatal: bad object [commitID]

    ? ? ? ? 項(xiàng)目不同模塊的功能建立了不同的分支進(jìn)行開發(fā),后期要將這部分代碼從附屬分支往主分支上合并,合并過程中出現(xiàn)這個(gè)問題,特此紀(jì)要! ? ? ? ? git cherry-pick [commitID]時(shí)報(bào)錯(cuò)? 錯(cuò)誤圖錄: ????????cherry-pick做的動(dòng)作是代碼合并的操作,出現(xiàn)上面的異常是因?yàn)楂@

    2024年01月18日
    瀏覽(23)
  • 【Git】Git commit至Gitee報(bào)錯(cuò)‘remote: error: hook declined to update refs/heads/master‘的解決方法

    【Git】Git commit至Gitee報(bào)錯(cuò)‘remote: error: hook declined to update refs/heads/master‘的解決方法

    Git commit至Gitee報(bào)錯(cuò)‘remote: error: hook declined to update refs/heads/master‘的解決方法 進(jìn)入到Gitee的 郵箱管理 中,取消勾選 禁止命令行推送暴露個(gè)人郵箱

    2024年02月04日
    瀏覽(26)
  • 解決Git報(bào)錯(cuò)fatal: couldn‘t find remote ref –-allow-unrelated-histories 的解決辦法

    解決Git報(bào)錯(cuò)fatal: couldn‘t find remote ref –-allow-unrelated-histories 的解決辦法

    當(dāng)執(zhí)行g(shù)it中的“git pull origin master –allow-unrelated-histories”命令時(shí), 如果出現(xiàn) fatal: couldn\\\'t find remote ref –-allow-unrelated-histories 的錯(cuò)誤,輸入如下命令即可解決: git pull --rebase origin master git push origin master 點(diǎn)贊 -收藏-關(guān)注-便于以后復(fù)習(xí)和收到最新內(nèi)容 有其他問題在評(píng)論區(qū)討論-或

    2024年02月13日
    瀏覽(19)
  • [git]報(bào)錯(cuò)fatal: ‘origin‘ does not appear to be a git repository Could not read from remote repository

    [git]報(bào)錯(cuò)fatal: ‘origin‘ does not appear to be a git repository Could not read from remote repository

    問題1: ? fatal: \\\'origin\\\' does not appear to be a git repository fatal: Could not read from remote repository. 說明庫是有的,但是沒辦法push。所以重新關(guān)聯(lián)一下。 解決方法: 輸入以下代碼, 這是因?yàn)楸镜氐姆种]有和遠(yuǎn)程分支建立聯(lián)系,需要執(zhí)行以下代碼就可以正常 push 了 ? 問題2: ? fatal:

    2024年02月09日
    瀏覽(29)
  • git使用git push -u origin master提交遠(yuǎn)程倉庫時(shí)報(bào)錯(cuò)error: failed to push some refs to ‘‘https://gitee.com/xx報(bào)錯(cuò)解決

    git使用git push -u origin master提交遠(yuǎn)程倉庫時(shí)報(bào)錯(cuò)error: failed to push some refs to ‘‘https://gitee.com/xx報(bào)錯(cuò)解決

    ? ? ? ? 今天使用git將項(xiàng)目提交遠(yuǎn)程倉庫時(shí)報(bào)錯(cuò)了,報(bào)錯(cuò)如下: ????????error: failed to push some refs to \\\'https://gitee.com/wang-junyanga/qiuy.git\\\' ?出現(xiàn)問題前的操作: ? ? ? ? 我再 gitee 中初始化了一個(gè)名字為 Qiuy 的倉庫,里面有一個(gè)默認(rèn)的分支為 master,我想要將本地倉庫中的名為

    2024年02月16日
    瀏覽(33)
  • Push master to origin/master was rejected by remote

    Push master to origin/master was rejected by remote

    很多人 ,百度半天網(wǎng)上都是教你們按照他們的解決方案來,但你們真的懂原因嗎?其實(shí)不見其然,所以本篇就告訴你怎么去找到問題的具體的報(bào)錯(cuò)和解決它。 很多人都是本地pull正常,push報(bào)錯(cuò),而且基本都是報(bào)Push master to origin/master was rejected by remote這個(gè)錯(cuò)誤,其實(shí),大家可以

    2024年02月11日
    瀏覽(26)
  • Merge remote-tracking branch ‘origin/master‘

    Merge remote-tracking branch ‘origin/master‘

    在項(xiàng)目提交的時(shí)候出現(xiàn)了Merge remote-tracking branch \\\'origin/master\\\'這個(gè)問題,不知道什么原因就感覺自己提交的有問題,網(wǎng)上的資料也沒有看明白。問了大佬同事,說這個(gè)是由于倉庫中別人已經(jīng)更新了項(xiàng)目,但自己沒有拉取下載,就會(huì)出現(xiàn)倉庫來進(jìn)行合并的提示。 總之,這個(gè)問題不

    2024年02月13日
    瀏覽(26)
  • Push rejected: Push master to origin/master was rejected by remote

    Push rejected: Push master to origin/master was rejected by remote

    這問題折騰我一下午,頭皮發(fā)麻,記錄一下 ? push時(shí)總是出現(xiàn)Push rejected: Push master to origin/master was rejected by remote這個(gè)問題,按網(wǎng)上說的改權(quán)限也不行,改分支也不行,后來查著查著發(fā)現(xiàn)了一個(gè)很神奇的玩意兒 ?根據(jù)這篇文章https://www.cnblogs.com/bznxn77/p/14959663.html ? 把這玩意關(guān)了

    2024年02月12日
    瀏覽(23)

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

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請(qǐng)作者喝杯咖啡吧~博客贊助

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

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包