git-mastery
Installation
SKILL.md
Git Mastery Skill
🛡️ Safety First Protocol
- Never force push to
main/master/develop. - Always use
--force-with-leaseinstead of--force. - Always create a backup branch before complex operations:
git branch backup/feature-xyz-pre-rebase
Advanced Workflows
1. Automated Bug Hunting (Git Bisect)
Find the specific commit that introduced a bug.
# Start
git bisect start
git bisect bad # Current version is broken
git bisect good <commit-sha> # Version that worked