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