报错"/>
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 报错
发布评论