您的位置:首页 > 其它

git报错:Please move or remove them before you can switch branches.

2017-01-03 16:09 423 查看
error: Your local changes to the following files would be overwritten by checkout:
.
.
.省略中间部分
.
Please move or remove them before you can switch branches.


出现这个错误时:可以通过以下的命令处理:

git clean  -d  -fx ""


注:

1. x :表示删除忽略文件已经对git来说不识别的文件

2. d: 删除未被添加到git的路径中的文件

3. f: 强制执行
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐