Skip to content

Added docs for sandbox git commands#87

Merged
matthewlouisbrockman merged 15 commits intomainfrom
feat/sandbox-first-class-git-support-docs
Jan 30, 2026
Merged

Added docs for sandbox git commands#87
matthewlouisbrockman merged 15 commits intomainfrom
feat/sandbox-first-class-git-support-docs

Conversation

@matthewlouisbrockman
Copy link
Contributor

@matthewlouisbrockman matthewlouisbrockman commented Jan 28, 2026

Git docs contents

The Git overview page documents common sandbox.git operations with JS/TS and Python examples, including:

  • Cloning a repository (path/branch/depth options).
  • Checking status and listing branches.
  • Creating, checking out, and deleting branches.
  • Staging and committing changes.
  • Pulling and pushing with per-command credentials.
  • Managing remotes.
  • Authenticating once via the credential helper (with warnings).
  • Keeping credentials in remote URLs (with warnings).
  • Configuring git user identity and config.

Relates to: e2b-dev/E2B#1101

Copy link
Member

@mishushakov mishushakov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's do some minor changes

@mishushakov
Copy link
Member

You can also showcase more function variants like we did here for example:
https://e2b.dev/docs/template/defining-template#git-operations

docs/git.mdx Outdated
```
</CodeGroup>

## Keep credentials in the remote URL
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you mean keep credentials in the repository?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mm, the remote URL for the repository yeah

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's stored in .git/config

Copy link
Member

@mishushakov mishushakov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's maybe move the identity and auth part into its own separate section in the beginning of the document and then all examples would refer back it kinda

Copy link
Member

@mishushakov mishushakov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good enough, let's release!

@matthewlouisbrockman matthewlouisbrockman merged commit 9fe2259 into main Jan 30, 2026
5 checks passed
@matthewlouisbrockman matthewlouisbrockman deleted the feat/sandbox-first-class-git-support-docs branch January 30, 2026 18:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants