As mentioned in git remote set-head
, origin/HEAD
is the default branch (i.e. the target of the symbolic-ref refs/remotes/<name>/HEAD
) for the named remote.
You can remove it without changing the remote repo itself, since it is a local reference to your remote default branch.
See "How does origin/HEAD get set?".
It can be set/updated with a git remote set-head origin -a
, which is what you need to do to update it in your first repo.
It is set automatically on a git clone
.