1、1.切换到自己项目所在的Windows目录,右键选择GIT BASH Here。

2、2.在terminl窗口中依次输入命令:
git pull
git pull origin master
git pull origin master --allow-unrelated-histories
3、如果出现fatal: refusing to merge unrelated histories
使用: git pull origin master --allow-unrelated-histories

4、3.回到IDEA项目上右键先择Git->Repository->Push,再次push成功。
