Configure Git Access
If you want to work with private repositories, push changes, or create pull requests, create the box with a GitHub token..env
Quickstart
Clone a repository
Inspect what changed
Usestatus() for a compact summary and diff() to diff the repo’s uncommitted changes against the initial state.
Commit and push
After your code changes are ready, create a commit and push the branch.Open a pull request
Create a PR once your branch is pushed.API
Clone
Clones a repository into the current working directory in the box.Status
Returns the Git status output for the repository in the current working directory.- See what files changed
- See if there are there untracked files
Diff
Returns the current Git diff as a string.- Useful to display a patch in your UI
- Review what an agent changed