What does the HEAD@{n} mean in the output for git reflog? -


what these head@{0} , head@{1} mean? isn't head supposed tag pointing single commit? why displayed on both then?

git reflog 97df263 head@{0}: commit: made first change file. yay! 4333289 head@{1}: clone: https://github.com/tswicegood/mysite 

head@{1} old head, head@{2} head before that, , on.

example:

$ git reflog abcdefg head@{0}: initial commit.  $ git commit -m "add new function." [master ab123cd] add new function.  1 file changed, 15 insertions(+), 2 deletions(-)  $ git reflog ab123cd head@{0}: add new function. abcdefg head@{1}: initial commit. 

Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -