![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
git
_lllll
这个作者很懒,什么都没留下…
展开
-
Git冲突:commit your changes or stash them before you can merge.
今天在服务器上直接修改了文件,然后服务器拉数据的时候就报了这样的错。 Please, commit your changes or stash them before you can merge. Aborting git的提示已经非常明确了,告诉我们要么把我们的更新进行commit要么就先stash本地更新。 第一种方法,stash: 那怎么stash本地的更新呢?直接执行: git s...原创 2020-03-17 15:54:11 · 242 阅读 · 0 评论 -
git pull的时候发生冲突的解决方法之“error: Your local changes to the following files would be overwritten by merge
解决方法一、stash 1git stash 2 git commit 3 git stash pop 接下来diff一下此文件看看自动合并的情况,并作出相应修改。 git stash: 备份当前的工作区的内容,从最近的一次提交中读取相关内容,让工作区保证和上次提交的内容一致。同时,将当前的工作区内容保存到Git栈中。 git stash pop: 从Git栈中读取最近一次保存的内容,恢复工作区的...原创 2020-03-14 23:52:57 · 2056 阅读 · 0 评论