with one click
git-master
// Provides expert Git operations with safety guardrails, conflict resolution, and best practices. Use when user asks to commit, push, merge, rebase, or fix git issues.
// Provides expert Git operations with safety guardrails, conflict resolution, and best practices. Use when user asks to commit, push, merge, rebase, or fix git issues.
| name | git-master |
| description | Provides expert Git operations with safety guardrails, conflict resolution, and best practices. Use when user asks to commit, push, merge, rebase, or fix git issues. |
| license | Apache-2.0 |
| metadata | {"version":"1.0.0","language":"en","trit":-1,"author":"agent-builder"} |
Expert Git operations with built-in safety rails and best practices.
If this skill's Git workflows are not appearing in your agent's slash-commands, run the following command from the skill's root directory:
python scripts/bootstrap.py --workspace .
This will automatically detect your agent's configuration directory (e.g., .agents, .cursor, .gemini, or .agent) and deploy the necessary .md or .mdc files.
reset --hard, force push, filter-repo), you MUST:
/) in examples for cross-platform compatibility.
Windows git handles forward slashes correctly.Load these specific references based on the valid user task:
| Topic | Reference File |
|---|---|
| Basics | references/basic-operations.md |
| Branch/Merge | references/branching-merging.md |
| Remotes | references/remote-operations.md |
| Advanced | references/advanced-operations.md |
| Platforms | references/platform-guide.md |
# Before dangerous ops
git status
git branch backup-$(date +%Y%m%d-%H%M%S)
# Proceed only after confirmation
Status & Log
git status
git log --oneline --graph --all
Undo Last Commit (Keep Changes)
git reset --soft HEAD~1
Emergency Recovery
git reflog
# Find the hash before the mistake, then:
# git reset --hard <hash> (if local)
# git cherry-pick <hash> (to recover specific commit)
[HINT] Download the complete skill directory including SKILL.md and all related files