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.

时间:2018-09-15 19:50:33   收藏:0   阅读:546

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

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

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

原文:https://www.cnblogs.com/vinzen/p/9651876.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!