Get a repository's default branch
GET/api/git-repos/default-branch
Returns a repository's default branch as its forge reports it, and whether it has no branch at all (empty), read through the current user's own git connection for that forge. Each is null when the URL is not a repository URL, the forge is not connected, or the forge cannot be read.
Request
Responses
- 200
- 422
OK
Unprocessable content