--- title: Git full: true _openapi: preload: - ./specs/toolbox-api.json toc: - depth: 2 title: Stage files url: '#stage-files' - depth: 2 title: List branches url: '#list-branches' - depth: 2 title: Create a branch url: '#create-a-branch' - depth: 2 title: Delete a branch url: '#delete-a-branch' - depth: 2 title: Switch branches url: '#switch-branches' - depth: 2 title: Clone a repository url: '#clone-a-repository' - depth: 2 title: Create a commit url: '#create-a-commit' - depth: 2 title: Read one git config key url: '#read-one-git-config-key' - depth: 2 title: Set one git config key url: '#set-one-git-config-key' - depth: 2 title: Read commit history url: '#read-commit-history' - depth: 2 title: Initialize a repository url: '#initialize-a-repository' - depth: 2 title: Pull from a remote url: '#pull-from-a-remote' - depth: 2 title: Push a branch url: '#push-a-branch' - depth: 2 title: List remotes url: '#list-remotes' - depth: 2 title: Add a remote url: '#add-a-remote' - depth: 2 title: Reset repository state url: '#reset-repository-state' - depth: 2 title: Restore files url: '#restore-files' - depth: 2 title: Read repository status url: '#read-repository-status' structuredData: headings: - content: Stage files id: stage-files - content: List branches id: list-branches - content: Create a branch id: create-a-branch - content: Delete a branch id: delete-a-branch - content: Switch branches id: switch-branches - content: Clone a repository id: clone-a-repository - content: Create a commit id: create-a-commit - content: Read one git config key id: read-one-git-config-key - content: Set one git config key id: set-one-git-config-key - content: Read commit history id: read-commit-history - content: Initialize a repository id: initialize-a-repository - content: Pull from a remote id: pull-from-a-remote - content: Push a branch id: push-a-branch - content: List remotes id: list-remotes - content: Add a remote id: add-a-remote - content: Reset repository state id: reset-repository-state - content: Restore files id: restore-files - content: Read repository status id: read-repository-status contents: - content: Run `git add -- ` in the target repository. heading: stage-files - content: Return local branch names from the target repository. heading: list-branches - content: Create one branch in the target repository. heading: create-a-branch - content: Force-delete one branch in the target repository. heading: delete-a-branch - content: Switch the target repository to another branch using `git switch`. heading: switch-branches - content: Clone a repository URL or local path into a destination directory. Credentials, when provided, are delivered to git via askpass and are never echoed back. Optional `depth` performs a shallow clone, and `insecureSkipTls=true` disables TLS verification for this clone invocation only. heading: clone-a-repository - content: Create one commit and return its full SHA. Author identity is passed to git for this invocation only and is not written into repository config. heading: create-a-commit - content: Read one git config value from global scope by default, or local scope when `scope=local` and `path` is provided. heading: read-one-git-config-key - content: Write one git config value to global scope by default, or local scope when `scope=local` and `path` is provided. heading: set-one-git-config-key - content: Return commit metadata from `git log` in newest-first order. heading: read-commit-history - content: Run `git init` and return the created status the historical wire contract uses. heading: initialize-a-repository - content: Pull from the repository's configured upstream by default, or from an explicit `remote` and optional `branch`, with `--ff-only` so divergent history becomes a conflict instead of a merge. heading: pull-from-a-remote - content: Push the current HEAD ref by default, or an explicit `branch` to `remote` (default `origin`) using an explicit `:` refspec. `setUpstream=true` passes `-u` to git. heading: push-a-branch - content: Return configured remotes. Any userinfo in remote URLs is redacted before it is returned. heading: list-remotes - content: Run `git remote add` in the target repository. heading: add-a-remote - content: Run `git reset` with the requested mode, target, and optional pathspecs. heading: reset-repository-state - content: Run `git restore` for one or more files from the index, worktree, or an optional source tree-ish. heading: restore-files - content: Return the current branch, ahead/behind counts, and file status entries from `git status --porcelain=v2 --branch -z`. heading: read-repository-status methods: - POST - GET - POST - DELETE - POST - POST - POST - GET - POST - GET - POST - POST - POST - GET - POST - POST - POST - GET --- {/* This file was generated by Fumadocs. Do not edit this file directly. Any changes should be made by running the generation command again. */} export default function Layout(props) { const { OpenAPIPage } = props.components ?? {}; return ( <> {props.children} ); }