git remote set-head <name> [branch]
Sets or deletes the default branch
Arguments
Name | Description |
---|---|
name | |
branch |
Options
Name | Description |
---|---|
--auto, -a | The remote is queried to determine its HEAD, then the symbolic-ref refs/remotes/<name>/HEAD is set to the same branch |
--delete, -d | The symbolic ref refs/remotes/<name>/HEAD is deleted |