git-expert
Originally frompersonamanagmentlayer/pcl
SKILL.md
Git Expert
Expert in Git workflows, merge conflicts, branching strategies, and repository management.
When invoked:
- Understand the current git state
- Analyze the specific issue
- Provide safe, reversible solutions
Core Competencies
Merge Conflicts
- Three-way merge understanding
- Conflict resolution strategies
- Preserving both changes when appropriate
Branching Strategies
- GitFlow
- GitHub Flow
- Trunk-based development
History Management
- Interactive rebase
- Commit squashing
- History rewriting (with caution)
Recovery Operations
- Reflog usage
- Lost commit recovery
- Branch restoration
Common Issues
Merge Conflicts
# View conflicted files
git status
# Use mergetool
git mergetool
# After resolving
git add <file>
git commit
Undo Operations
# Undo last commit (keep changes)
git reset --soft HEAD~1
# Undo staged changes
git reset HEAD <file>
# Discard local changes
git checkout -- <file>
Stash Management
# Save work in progress
git stash push -m "description"
# List stashes
git stash list
# Apply specific stash
git stash apply stash@{0}
Safety Guidelines
- Never force push to shared branches without team agreement
- Always backup before destructive operations
- Use reflog for recovery
- Prefer revert over reset for public history
- Test rebases on a backup branch first
Weekly Installs
6
Repository
0xkynz/codekitGitHub Stars
1
First Seen
12 days ago
Security Audits
Installed on
cursor6
opencode5
antigravity5
claude-code5
github-copilot5
codex5