码迷,mamicode.com
首页 > Windows程序 > 详细

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 20:05:15      阅读:211      评论:0      收藏:0      [点我收藏+]

标签:丢失   files   dev   tor   error:   com   文件   git   -o   

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

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

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

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.

标签:丢失   files   dev   tor   error:   com   文件   git   -o   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!