本地代码有误,回滚到以前的某个版本

    xiaoxiao2021-03-25  66

    git log

    git reset --hard 3628164

    如果报  git Unstaged changes after reset

    git stash   //对当前的暂存区和工作区状态进行保存

    git stash drop //删除某一个进度,默认删除最新进度

    经过以上四步,就可以恢复以前的可运行状态

    参考:http://www.tuicool.com/articles/rUBNBvI

    转载请注明原文地址: https://ju.6miu.com/read-40147.html

    最新回复(0)