git push 报错

编程入门 行业动态 更新时间:2024-10-14 20:21:43

git push <a href=https://www.elefans.com/category/jswz/34/1771188.html style=报错"/>

git push 报错

错误如下

$ git push
To .git! [rejected]        master -> master (fetch first)
error: failed to push some refs to '.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
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.

解决办法如下

$ git push -f
Enumerating objects: 113, done.
Counting objects: 100% (113/113), done.
Delta compression using up to 4 threads
Compressing objects: 100% (107/107), done.
Writing objects:  38% (44/113), 10.45 MiB | 192.00 KiB/s

回到顶部



知乎:叄贰壹

简书:带只拖鞋去流浪

关注我,带你一起写bug

warning :未经授权,不得转载

有问题的小伙伴请在下方留言,喜欢就点个赞吧

更多推荐

git push 报错

本文发布于:2024-02-24 16:13:35,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1695915.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:报错   git   push

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!