git - Git Bash 终端中的“更新被拒绝”是什么意思?
问题描述
git bash 终端出现问题。我收到此错误:
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'https://github.com/Eduk8ed/AdBarge.git'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
解决方案
执行git pull --rebase origin master
然后尝试推动。
推荐阅读
- flutter - 如何在富文本中获得一些空间?
- json - 为什么 JSON 不能容忍最后一个元素后面的逗号?
- c - 如何检测是否有溢出,如果有,如何判断是正溢出还是负溢出?
- c# - 如何在 NUnit 中使用带有 TestCasesSource 的元组?
- docker - Kubernetes 上的超集
- javascript - 如何在角度 9 中更改 ngx-toastr 的宽度
- block - 带滑块的定制古腾堡块
- reactjs - 如何在反应中使用 useEffect 获取数据
- php - Prestashop 增强型电子商务 OrderConfirmation
- c# - MVC 中的异常处理