git log decoration origin/HEAD
I have two project repositories.
When I run
git log --oneline --decorate --graph in each, one shows
(HEAD, origin/dev, origin/HEAD, dev) and the other shows
(HEAD, origin/dev, dev).
- git show logs exclude some user or committer
- git log the difference between 1 branch from another
- What's the best practice of going GIT when upstream is 100% CVS?
- Is there a less verbose way to get the commit date of the merge-base of origin/master and HEAD?
- git log without tags
- Get 'native' commits on a branch
In both cases,
dev is the default branch. Why does
origin/HEAD show in one and not the other? What does one do to make
origin/HEAD appear or not appear?
One Solution collect form web for “git log decoration origin/HEAD”
As mention in “How does
origin/HEAD get set?”, it is set automatically on
- either your second repo wasn’t cloned (but initialized empty, added a remote and fetched)
- or there was some rebase which makes origin/HEAD not visible.
Try (to see all commits) a:
git log --oneline --decorate --graph --all --branches