execute-git

Solid

Git operations — commit, push, branch, merge, and git workflow management. Use when the user needs git actions or version control operations. Related user-level skill: git-workflow (workflow conventions).

AI & Automation 0 stars 0 forks Updated today MIT

Install

View on GitHub

Quality Score: 78/100

Stars 20%
0
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# Execute-Git (Git 操作) Perform git operations with safety checks. ## When to Use - "Commit my changes" - "Push to remote" - "Create a branch" - "Merge feature into main" - "Undo the last commit" ## When Not to Use - Interactive rebase (`git rebase -i`) → ask user for explicit step-by-step instructions; do not automate - Git bisect → requires manual guidance; stub and ask user to run commands - Submodule operations (`git submodule`) → stub: ask user for explicit intent - Reflog recovery → surface reflog entries but let the user pick the target ## Procedure 1. **Status check** — run `git status` and `git diff --stat` to understand the current state. 2. **Plan** — describe the intended operation to the user (especially if destructive: reset, force-push, rebase). Wait for confirmation. 3. **Pre-operation safety**: - For merge: do a `git merge --no-commit --no-ff <branch>` dry-run first; if conflicts, report them. - For push: show `git diff --stat` and let the user review before pushing. - For destructive operations: show the full command, explain the impact, wait for explicit "yes". 4. **Execute** — run the git operation. 5. **Verify** — run `git log --oneline -3`, `git status`, and optionally `git diff --stat` to confirm the result. ## Pitfalls - **Destructive commands list** (all require explicit approval before execution): - `git reset --hard` / `git reset --mixed` - `git push --force` / `git push --force-with-lease` - `git rebase` (interactive or not) ...

Details

Author
AVA-2568
Repository
AVA-2568/MY_SKILL
Created
2 days ago
Last Updated
today
Language
Python
License
MIT

Integrates with

Similar Skills

Semantically similar based on skill content — not just same category