git push rejected处理
Posted mabiao008
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了git push rejected处理相关的知识,希望对你有一定的参考价值。
项目中有和和历史不符的东西
推拒绝:推送到起源/主人被拒绝
解决办法:打开要上传代码的文件夹位置,鼠标右键git Bash Here,执行下述2行
git pull origin feat/security –allow-unrelated-histories
git push -u origin feat/security -f
以上是关于git push rejected处理的主要内容,如果未能解决你的问题,请参考以下文章
git问题--Push rejected: Push to origin/master was rejected
GitIDEA+Git使用过程中git push rejected解决
Git push remote rejected {change ### closed}
Git上传项目提示Push rejected: Push to origin/master was rejected解决办法
IDEA Git 上传代码时遇到 Push rejected: Push to origin/master was rejected
Push rejected: Push master to origin/master was rejected /failed to push some refs to /git did not