cURL
curl --request POST \ --url http://localhost:3000/api/v1/git/discard \ --header 'Content-Type: application/json' \ --cookie nut-session= \ --data ' { "files": [ "<string>" ] } '
{ "success": true, "data": {} }
Discard uncommitted changes
Session cookie authentication
Files to discard (all if not provided)
Changes discarded