Expand description
Git CLI command wrappers for repository discovery, merge, and path resolution.
Functionsยง
- git_
branch_ exists - Checks if a branch exists locally in the repository.
- git_
checkout - Switches to the specified branch.
- git_
create_ annotated_ tag - Creates an annotated Git tag on
target_ref. - git_
delete_ remote_ branch - Deletes a branch from the specified remote repository.
- git_
get_ remotes - Returns the list of configured Git remotes in the repository.
- git_
head_ commit - Resolves the abbreviated HEAD commit hash for a worktree.
- git_
is_ clean - Checks whether the Git repository working tree has any unstaged or staged modifications.
- git_
merge - Merges
branchinto the currently checked-out branch. - git_
push_ upstream - Pushes the branch to the specified remote repository and configures upstream tracking.
- git_
remote_ branch_ exists - Checks whether a branch exists on the specified remote repository.
- git_
worktree_ prune - Runs
git worktree pruneto clean internal Git worktree tracking. - resolve_
git_ common_ dir - Resolves the Git common directory (
git rev-parse --git-common-dir) for repository-wide state likeclaw/slots.jsonandclaw/slots.lock. - resolve_
repo_ name - Extracts repository name from top-level directory.
- resolve_
toplevel - Resolves the top-level repository working tree directory (
git rev-parse --show-toplevel).