push to origin/master was rejected 解决办法
push to origin/master was rejected 解决办法
使用IDE git提交代码的时候,出现push to origin/master was rejected(如下图)解决办法如下:
1、打开terminal
2、git pull
3、git pull origin master
4、git pull origin master --allow-unrelated-histories
5、重新push,发现push成功