Skip to main content
GET
/
api
/
v1
/
git
/
branches
List branches
curl --request GET \
  --url http://localhost:3000/api/v1/git/branches \
  --cookie nut-session=
{
  "success": true,
  "data": {
    "branches": [
      {
        "name": "<string>",
        "current": true,
        "remote": "<string>",
        "commit": "<string>"
      }
    ]
  }
}

Authorizations

nut-session
string
cookie
required

Session cookie authentication

Response

List of branches

success
boolean
required
data
object