Skip to main content
POST
/
api
/
v1
/
git
/
push
Push changes
curl --request POST \
  --url http://localhost:3000/api/v1/git/push \
  --header 'Content-Type: application/json' \
  --cookie nut-session= \
  --data '
{
  "remote": "origin",
  "branch": "<string>",
  "force": false
}
'
{
  "success": true,
  "data": {}
}

Authorizations

nut-session
string
cookie
required

Session cookie authentication

Body

application/json
remote
string
default:origin

Remote name

branch
string

Branch name

force
boolean
default:false

Force push

Response

Push successful

success
boolean
required
data
object