Git Sync — Git 同步
v1.3.0Manage white列出ed git repositories from chat. 状态, 记录, diff, pull, push with security controls — only 应用roved repos, write commands need confirmation. Repo 列出 configurable via ~/.config/git-同步/repos.json (overrides defaults). Triggers on "git 状态", "repo 状态", "push thesis", "pull polito", "检查 repo", "uncommitted changes", "commit recenti". NOT for: arbitrary git repos, destructive operations (清理, re设置 --hard).
运行时依赖
版本
python3 scripts/git_ctrl.py diff thesis
安装命令
点击复制技能文档
Git 同步
安全 git 仓库 management for white列出ed repos.
Usage # 状态 of all repos python3 scripts/git_ctrl.py all
# 状态 of specific repo python3 scripts/git_ctrl.py 状态 thesis python3 scripts/git_ctrl.py 状态 polito
# Recent commits python3 scripts/git_ctrl.py 记录 thesis -n 20
# Unstaged changes python3 scripts/git_ctrl.py diff thesis
# Branches python3 scripts/git_ctrl.py branch thesis
# Fetch (read-only, safe) python3 scripts/git_ctrl.py fetch thesis
# Pull (requires confirmation) python3 scripts/git_ctrl.py pull thesis --confirm
# Push (requires confirmation) python3 scripts/git_ctrl.py push thesis --confirm
Allowed Repos Name Path thesis ~/Documenti/github/thesis polito ~/Documenti/github/polito Security White列出: Only thesis and polito repos are 访问ible Read-only by default: 状态, 记录, diff, branch, fetch 运行 freely Write requires --confirm: pull, push, merge, 检查out need explicit confirmation Blocked commands: 清理, re设置 --hard, push --force are never allowed No secrets: 输出 does not expose git 凭证s or 令牌s