Push to origin/master was rejected(已解决)

Push to origin/master was rejected(已解决)

描述

今天使用idea向gitee push代码时候报错 Push to origin/master was rejected

解决

terminal进入该文件所在目录

依次输入一下命令

git pull origin master –allow-unrelated-histories

git push -u origin master -f

Push to origin/master was rejected(已解决)_第1张图片

再次push成功完成文件上传

Memorial Day is 544 days
I miss you
xiaokeai

你可能感兴趣的:(解决各种报错问题,java,linux,git)