Skip to content

Conversation

@matthewlouisbrockman
Copy link

@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?

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

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!

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.

3 participants