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
Post a Comment