首页 > 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 19:50:33      阅读:546      评论:0      收藏:0      [点我收藏+]

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.

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!