Contents:
当我在不同的主机上修改我的git仓库文件时,有时候会因为忘记及时提交修改,而在另外一台主机上基于以前的提交做了变更修改并提交了仓库。此时 git pull 会出现合并冲突提示:
git pull
commit your changes or stash them before you can merge
这种情况下,需要决定:
本地修改的文件是否要继续提交
本地修改的文件是否要放弃提交(回滚)
Git commit your changes or stash them before you can merge Solution