Skip to content

Git sync the notes folder

POST
/sync
curl --request POST \
--url http://127.0.0.1:7677/sync \
--header 'Authorization: Bearer <token>'

Runs git pull --rebase --autostash, then commits and pushes any local changes. Fails if the notes folder is not a git repository.

Sync result

Media type application/json
object
data
object
message
required
string
Example generated
{
"data": {
"message": "example"
}
}