You can set it by command git remote set-head origin -a, which automatically set origin/HEAD to point to appropriate remote branch. Or using git remote set-head origin to specify a remote branch to point.
Also see: https://stackoverflow.com/a/8841024/1851492