代码git提交报错The following untracked working tree files would be overwritten by merge:README.md错误解决

解决方案如下:

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


依次输入命令
  1. git fetch --all  
  2. git reset --hard origin/master 


push to origin/master was rejected错误解决方案

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


依次输入命令:


git pull

git pull origin master

git pull origin master --allow-unrelated-histories


你可能感兴趣的:(git代码提交错误处理)