cURL
curl --request POST \ --url http://localhost:3000/api/v1/git/branches \ --header 'Content-Type: application/json' \ --cookie nut-session= \ --data ' { "name": "<string>", "startPoint": "<string>" } '
{ "success": true, "data": { "branch": { "name": "<string>", "current": true, "remote": "<string>", "commit": "<string>" } } }
Create a new Git branch
Session cookie authentication
Branch name
Starting commit/branch
Branch created
Show child attributes
Is current branch
Remote tracking branch
Latest commit SHA