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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM