博客 / gitGit彻底删除历史提交记录的方法码界织梦2019年7月19日5562 阅读文章目录 1、查看Git提交记录 # git log 2、找到需要回滚到的提交点,复制它的hash值 # git reset --hard 你复制的hash值 3、将当前指向的head推到git # git push --force # git
1、查看Git提交记录 # git log 2、找到需要回滚到的提交点,复制它的hash值 # git reset --hard 你复制的hash值 3、将当前指向的head推到git # git push --force
评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论