Life is like a Markov chain,
         your future only depends on what you are doing now,
                               and independent of your past.
摘要: 使用git reflog命令,查看当前仓库的操作日志。在日志中找出 回溯历史之前的哈希值,通过 git reset --hard命令恢复到回溯历史前的状态。 只要不进行 Git 的 GC(Garbage Collection,垃圾回收), 就可以通过日志随意调取近期的历史状态。 哈希值只要输入 4 阅读全文
posted @ 2018-03-23 22:48 Hu_Yan 阅读(265) 评论(0) 推荐(0) 编辑