# git (https://lazyfrog.dev/docs/tools/git)

{/* Generated by scripts/generate-docs.ts from the gateway's registered tools. Do not edit. */}

**{"Git"}** · Can change or delete · actions: `status`, `log`, `diff`, `commit`, `remote_set`, `remote_show`, `remote_remove`, `push`, `pull`

<p>{"For reading use git_read, which is read-only and needs no approval: \"status\", \"log\", \"diff\", \"remote_show\" here are deprecated (still works). The project's git repository in /workspace (the code; /data and the database are not in git). action \"status\", \"log\" (recent commits), \"diff\" (uncommitted changes; paths to limit), \"commit\" (message; stages everything unless paths are given; authored as the user with you as co-author; a commit containing a secret is refused with the file and line). Remote: \"remote_set\" (github: \"owner/name\" for a GitHub repository the user connected in the portal (Project › Code), nothing to add; or url, an SSH address such as git@gitlab.com:you/app.git, which returns a deploy key to add to the repository with write access; rotate_key: true for a new key), \"remote_show\", \"remote_remove\", \"push\" (the current branch; history is scanned for secrets first; force: true overwrites the remote branch), \"pull\" (fetches the current branch; a snapshot is taken first; strategy \"ff-only\" by default or \"merge\"). An imported project keeps the original repository as remote \"imported-from\": pull with remote \"imported-from\" merges its updates (a snapshot first; conflicts are listed and nothing changes)."}</p>
