← 返回
数据分析 中文

Git Manager

Advanced Git operations support for bisecting regressions, cleaning up branches, managing stash workflows, and analyzing commit/history state. Use when users...
高级 Git 操作支持,包括回归二分定位、清理分支、管理 stash 工作流及分析提交/历史状态。当用户需要...
ppopen
数据分析 clawhub v1.0.1 1 版本 100000 Key: 无需
★ 0
Stars
📥 729
下载
💾 7
安装
1
版本
#latest

概述

git-manager

Summary

git-manager orchestrates advanced repository maintenance by combining bisecting, branch cleanup, stash handling, and log analysis into a cohesive guidance skill. It keeps teams safe by pairing every destructive recommendation with an explicit verification or rollback prompt before running commands that rewrite history.

Triggers

  • git manager
  • bisect issue
  • cleanup branches
  • stash help
  • analyze git log
  • safe git ops

Workflow

  1. Assess repository health – start with git status, review git fetch --all, and record the current branch/tag. Prompt the user: _"Are we on the branch that should move forward, or is a temporary diagnostic branch mounted?"_
  2. Bisect troubleshooting – when isolating regressions, run git bisect start with the known good/bad commits and iteratively test. After each reproduce attempt, ask for confirmation before git bisect good/bad. Offer the safety reminder: _"Bisect rewrites HEAD; stash or commit open work first."_
  3. Branch cleanup – use git branch --merged versus git branch --no-merged to find stale branches. Recommend git branch -d for merged work and git branch -D only after re-confirming the target branch via a safety prompt to avoid deleting active work.
  4. Stash management – suggest git stash list/git stash show to catalogue hidden work. Encourage naming stashes with git stash push -m "description" and verify the exact entries before git stash drop/pop, reminding the user to keep a copy (git stash branch ) if they need extra safety.
  5. Log analysis – guide through git log --oneline --graph --decorate, git reflog, and git log @{u} to understand recent operations. Offer commands like git show for inspection and highlight the importance of reviewing commit messages before reverting or cherry-picking.
  6. Safety prompts – before destructive commands (e.g., reset --hard, git clean -fd, branch deletion, rebase, push --force), run the two-step destructive confirmation protocol: (1) display the current branch name and HEAD commit hash or tag, verify the target commit, and remind the user to take a backup action (tag, temporary branch, stash, export patch, etc.); (2) require an explicit textual YES reply before running the command. Always pair the recommendation with git status, git log -1, or a git tag snapshot so the user can see exactly what would change, and prefer git push --force-with-lease over --force unless the situation explicitly warrants the risk.

Deliverables

  • Provide step-by-step command sets for diagnostics (bisect, log review, stash recovery).
  • Keep a safety checklist in every response: check HEAD, stash status, remote tracking state, and backup plan (tag or branch) before rewriting history.
  • Offer follow-up summary: what was touched, what is stashed, and what commands to run next for cleanup.

版本历史

共 1 个版本

  • v1.0.1 当前
    2026-03-29 15:16 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

Excel / XLSX

ivangdavila
创建、检查和编辑 Microsoft Excel 工作簿及 XLSX 文件,支持可靠的公式、日期、类型、格式、重算及模板保留功能。
★ 366 📥 139,963
productivity

Cron Scheduler

ppopen
管理 macOS/Linux 的 cron 任务——列出、添加、移除、备份及调度定时任务。
★ 0 📥 1,482
data-analysis

A股量化 AkShare

mbpz
A股量化数据分析工具,基于AkShare库获取A股行情、财务数据、板块信息等。用于回答关于A股股票查询、行情数据、财务分析、选股等问题。
★ 162 📥 59,675