问题:
最近要投一篇论文,两个人都再改,出现了修改冲突。
这里因为对论文的latex文件修改,具体如下:
$ git pull
error: Your local changes to the following files would be overwritten by merge:
Draft/scis_paper.tex
Please commit your changes or stash them before you merge.
Aborting
Updating 2c10358..635e064
解决办法如下:
- 暂存当前本地修改的内容
命令如下:
git stash save
- 拉取最新仓库内容
git pull
3.最新版本上合并当前修改内容
git stash pop