Git
10 tools for full git workflow — clone, commit, push, branch, diff, log, stash, and remote management.
Basics
| Tool | Parameters | Description |
|---|---|---|
git_clone | url, path? | Clone a git repository to a local path. If path is omitted, uses the repo name in the current directory. |
git_pull | cwd | Pull the latest changes from the tracked remote branch. |
git_status | cwd | Show the working tree status — staged, unstaged, and untracked files. |
git_commit | cwd, message, add_all? | Stage all changes and create a commit with the given message. |
git_push | cwd, remote?, branch? | Push committed changes to the remote. Defaults to origin and the current branch. |
Branches & remotes
| Tool | Parameters | Description |
|---|---|---|
git_branch | cwd, create?, switch? | List all branches, create a new one, or switch to an existing branch. Pass create to create and checkout, switch to checkout. |
git_remote | cwd, action, name?, url? | Manage remotes — list, add, or remove remote endpoints. |
History & diff
| Tool | Parameters | Description |
|---|---|---|
git_log | cwd, n? | Show the last N commits (default 10) with hash, author, date, and message. |
git_diff | cwd, ref?, staged? | Show unstaged changes, staged changes, or the diff against a specific commit or branch ref. |
Stash
| Tool | Parameters | Description |
|---|---|---|
git_stash | cwd, action, message? | Save, list, apply, or drop stash entries. Pass action: "push" to stash, "pop" to restore, "list" to see all stashes. |