V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
jlak
V2EX  ›  问与答

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

  •  
  •   jlak · 33 天前 · 708 次点击
    这是一个创建于 33 天前的主题,其中的信息可能已经有所发展或是发生改变。

    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 条回复
    nagisaushio
        1
    nagisaushio  
       33 天前 via Android
    jlak
        2
    jlak  
    OP
       33 天前
    @nagisaushio 谢谢解决了,我是真没想到才几个文件的 go 项目会由缓存不够问题
    之前多点都没事,怎么引起的都不知道,感觉 git 这套系统好复杂动不动就 error
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2907 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 13:24 · PVG 21:24 · LAX 06:24 · JFK 09:24
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.