git-recovery
Git Safety and Recovery
Purpose: This skill teaches AI agents to work safely with Git and recover from common mistakes without losing work.
Core Principles
- Git Rarely Deletes - Almost everything is recoverable via reflog
- Understand Before Destroying - Know what
--hard,--forcedo - Backup Before Risky Operations - Use stash or branches
- Revert, Don't Reset - For shared branches
Understanding Git's Safety Net
The Reflog (Your Safety Net)
What is reflog? Git's reflog records every HEAD movement. It's your "undo history" for Git operations.
More from daleseo/git-skills
modern-git
Modern Git command best practices for AI agents. Use modern, purposeful commands introduced in Git 2.23+ instead of legacy multi-purpose commands. Teaches when to use `git switch` (branch operations), `git restore` (file operations), and other safer alternatives to improve clarity and reduce errors.
14git-commits
Best practices for creating high-quality Git commits. Covers commit message conventions (Conventional Commits), atomic commits, staging strategies, and when to amend vs create new commits. Helps AI agents generate clean, meaningful commit history.
9git-collaboration
Collaboration workflows for team-based Git development. Covers pull request workflows, merge vs rebase strategies, conflict resolution, code review practices, and branch protection. Helps AI agents follow team conventions and collaborate effectively.
9