Skip to content

Git quickstart

Wabe supports Git commands on filesystem branches. A standard Git client can also clone, fetch and push through the experimental smart HTTP adapter.

Create the demo disk and a project API key in the quickstart.

Terminal window
curl --fail-with-body --no-buffer \
"https://api.wabe.sh/v1/disks/demo/exec?branch=main" \
-H "Authorization: Bearer YOUR_PROJECT_API_KEY" \
--data-binary @- <<'WABE'
printf 'Hello\n' > /git-quickstart.txt
git add /git-quickstart.txt
git commit -m 'Add a note'
WABE

branch=main selects the branch for the file write and Git commands. The output includes the commit ID. Check the final exit record for code 0.

See the Git commands, smart HTTP reference and execution output format.