git checkout 报错error: Your local changes to the following files would be overwritten by checkout: data/dev.php Please, commit your changes or stash them before you can switch branches.

1  git clean n //这个是清除文件预览 git clean -f //强制清除文件

2  git clean -f //强制清除文件

3  git checkout -f <branch>  //不建议使用  容易丢失文件

posted @ 2018-09-15 19:13  isafer_wilson  阅读(3128)  评论(0编辑  收藏  举报