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.