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>  //不建议使用  容易丢失文件

猜你喜欢

转载自www.cnblogs.com/vinzen/p/9651876.html