Git Configuration
Git is commonly used to bring source code into the sandbox or commit generated changes.
Public Repositories
Clone public repositories directly:
For faster startup, bake stable repositories into a custom image:
Private Repositories
For private repositories, prefer runtime credentials instead of baking secrets into images:
You can also mount SSH keys or token files for a single task, then remove them when the task is complete.
Recommended Settings
Security
- Never commit secrets into the repository.
- Avoid adding private keys to custom image layers.
- Prefer short-lived tokens for one-off tasks.
- Review generated diffs before pushing changes.