git练习之二 – version revert

  • 2019 年 10 月 4 日
  • 笔记

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。

本文链接:https://jerry.blog.csdn.net/article/details/100919623

Finish takt 3 dev and commit it:

Header is now at 8cb2749:

A new file ORIG_HEAD is generated in .git pointing to original header ( takt 3 ):

Now we are in takt2 : the source code is restored to takt2 state:

try with –soft:

moved to initial commit:

Now content of ORIG_HEAD changes to:

And the content of source code is not reverted to initial state, either.

Now I could like to go to the latest version where takt 3 dev is finished, that is, original header f70197c:

Then the content is restored to the original state of this document.