git2 - version revert

87 阅读1分钟

Finish takt 3 dev and commit it:

clipboard1

clipboard2

clipboard3

clipboard4

Header is now at 8cb2749:

clipboard5

clipboard6

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

clipboard7

clipboard8

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

clipboard9

clipboard10

clipboard11

clipboard12

clipboard13

 

try with --soft:

 

 

moved to initial commit:

clipboard14

clipboard15

Now content of ORIG_HEAD changes to:

clipboard16

clipboard17

clipboard18

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

clipboard19

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

clipboard20

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

clipboard21\