Error pulling origin

Error pulling origin: error: Your local changes to the following files would be overwritten by merge

但是发现stash后还是会出现:Error pulling origin: error: The following untracked working tree files would be overwritten by merge...

其实你看错误提示就知道了,是因为一些untracked working tree files引起的问题。所以只要解决了这些untracked的文件就能解决这个问题。

解决有两种方式:

方式一:如果你有安装git的工具,当然是图形化工具,比如tortoiseGit,你可以通过这些工具,选中你的工程文件夹,右键cleanup。

方式二:通过命令行,你直接执行git clean -d -fx即可。

猜你喜欢

转载自dannyyo.iteye.com/blog/2152374