git push rejected处理

项目中有和和历史不符的东西 

推拒绝:推送到起源/主人被拒绝 

解决办法:打开要上传代码的文件夹位置,鼠标右键git Bash Here,执行下述2行

git pull origin feat/security –allow-unrelated-histories

git push -u origin feat/security -f

原文地址:https://www.cnblogs.com/mabiao008/p/12293640.html