在电脑A上建立了git远程库(有文件test),电脑B上git clone过去,然后在电脑B上修改文件test,git add test,git commit -m "change test",git push origin master(两台电脑都只有一个master分支),然后在电脑A上git pull origin master之后显示Already up-to-date,但是vim test却发现没有变化,git status显示modified test。
说明你A电脑上test文件修改过。 A电脑上先执行 git checkout . 撤销修改
再执行 pull