git push error Jun 9, 2022 error: Your local changes to the following files would be overwritten by merge: readme.rb Please commit your changes or stash them before you merge. Aborting 如果在远程修改了文件,在本地同时修改了文件,会发生冲突,需要在本地修改合并文件,手动完成修改。 首先把本地的文件保存并提交, git status git diff git add git commit 然后把远程的数据提取到本地,进行文件合并修改 git pull git log git status vim git add git commit git push