How do I show tips that don't have a head in `git log --all`? -
the jargon understand it:
- tip, commit has no children (only parents unless orphaned)
- head, named reference, eg
master
, or "tree-ish" http://git-scm.com/book names it.
under normal circumstances use more graphical permutation of git log all:
git log --all --color --oneline --graph --decorate
to create tip no head did:
git checkout head^ echo "" >> index.html git commit -am "tip test"
at point git log --all
show tip, because has head, head
.
git checkout master
and tip we've created no longer reported git log.
i understand behavior by-design, , git reflog
can point out recent "commit-ish" references.
i'd way see tips in git log
(as chronology important feature purposes).
i don't know way this, short of creating temporary references deferenced head@{n}
entries before requesting log (though answer uses such still acceptable presuming cleaned after itself)
git doesn't know (or care) unnamed tips. these known "dangling commits", , may produced normal interactions git (particularly rebase
, reset
, , commit --amend
).
there no way know of have git log
show dangling commits.
Comments
Post a Comment