使用TortoiseGit pull时,提示Please, commit your changes or stash them before you can merge.

 这是代码冲突导致的。

解决:点击项目 右键选择 stash save(把自己的代码隐藏存起来) -> 重新pull -> stash pop(把存起来的隐藏的代码取回来 ) -> 代码文件会显示冲突 -> 点击冲突文件右键 edit conficts解决冲突,解决后点击编辑页面的 mark as resolved ->  commit--->push


猜你喜欢

转载自blog.csdn.net/m0_37143081/article/details/80805286