1、git status 2、git checkout -- src/views/bobo/abtest/ABTestV2.vue(此处为修改的文件目录) 3.已经恢复了之前的代码。 转载于:https://www.cnblogs.com/maldive/p/9265184.html