V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
jlak
V2EX  ›  问与答

一次失误我的 git 就不能用了

  •  
  •   jlak · Aug 22, 2024 · 1190 views
    This topic created in 614 days ago, the information mentioned may be changed or developed.

    ide 用的 vsc 多年一直用 gh 来备份我的小项目,但是只知道备份其他的都不会 今天在另一台电脑里 clone 后继续写,写了点后回到平时用的电脑时忘记先 pull 后再继续 然后就玩完了,各种提示错误,各种分叉
    提示里出现 git config pull.rebase true
    我就在命令行输入了
    然后可以备份了一半 另一半显示继续错误
    我已经删了项目,gh 账号名也改了,项目里 git 文件夹也给删了
    项目重新创建了还是继续错误

    git push -u origin main error: RPC failed; HTTP 400 curl 22 The requested URL returned error: 400 send-pack: unexpected disconnect while reading sideband packet fatal: the remote end hung up unexpectedly Everything up-to-date

    总结我做到的只有
    电脑 1 -> clone -> 写
    电脑 2 -> 忘记 pull -> 继续写 -> push -> error ->
    terminal git config pull.rebase true -> pushing -> error 400
    -> delete repository -> delele .git 文件夹 -> create repository -> push -> error 400

    其他项目正常 就这个项目怎么弄都不能上传了

    2 replies
    nagisaushio
        1
    nagisaushio  
       Aug 22, 2024 via Android
    jlak
        2
    jlak  
    OP
       Aug 22, 2024
    @nagisaushio 谢谢解决了,我是真没想到才几个文件的 go 项目会由缓存不够问题
    之前多点都没事,怎么引起的都不知道,感觉 git 这套系统好复杂动不动就 error
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3316 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 13:27 · PVG 21:27 · LAX 06:27 · JFK 09:27
    ♥ Do have faith in what you're doing.