git push rejected处理

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

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

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

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

git push -u origin feat/security -f

posted @ 2020-02-11 01:12  mabiao008  阅读(372)  评论(0编辑  收藏  举报