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).

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?

  • Weird output for git log --merges when merging feature branches
  • Git Log, insert new string only when string is not null
  • Color in git-log
  • How to exit git log or git diff?
  • Can you log a few commits before and after a specified commit?
  • How to “git log --follow <path>” in JGit? (To retrieve the full history including renames)
  • git log over ssh remote repository
  • Get first 'x' characters of git log
  • 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 git clone.

    That means:

    • 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
    Git Baby is a git and github fan, let's start git clone.