本地代码没有提交到git,但是想从远程仓库下载代码,这个时候会提示 Please commit your changes or stash them before you merge.如何解决呢?

1.把冲突文件先拷贝到一个文件夹备份。

2.先把你所有的修改存到暂存区。

sourceTree解决 Please commit your changes or stash them before you merge.

3.移除冲突问题。

sourceTree解决 Please commit your changes or stash them before you merge.

4.从远程仓库pull下来最新代码。把代码移出暂存。

5.用一开始备份的文件替换冲突文件。

相关文章: