git remote set-head <name> [branch]

Sets or deletes the default branch

Arguments

NameDescription
name
branch

Options

NameDescription
--auto, -aThe remote is queried to determine its HEAD, then the symbolic-ref refs/remotes/<name>/HEAD is set to the same branch
--delete, -dThe symbolic ref refs/remotes/<name>/HEAD is deleted