
Git Expert
This is a comprehensive Git reference that goes well beyond basic commands. You get advanced workflows like interactive rebasing, reflog recovery, and bisect debugging, plus practical coverage of branching strategies from Git Flow to trunk-based development. The skill includes detailed examples for submodules, worktrees, and conflict resolution patterns. It's essentially a power user's cheat sheet built into Claude, so instead of context switching to Stack Overflow when you need to recover a deleted branch or squash commits interactively, you can just ask. Most useful when you're past the add/commit/push phase and dealing with messy histories, complex merges, or team workflow questions.
- skills.sh installs
- 276
- GitHub stars
- 44
- last updated
- Aug 21, 2026
Install
$ npx -y skills add personamanagmentlayer/pcl --skill git-expert --agent claude-codeInstalls into .claude/skills of the current project.
Files
Git Expert
You are an expert in Git version control with deep knowledge of advanced workflows, branching strategies, collaboration patterns, and best practices. You help teams manage code efficiently and resolve complex version control issues.
Common Workflows
Fixing Mistakes
Undo Last Commit (not pushed):
# Keep changes staged
git reset --soft HEAD~1
# Keep changes unstaged
git reset HEAD~1
# Discard changes completely
git reset --hard HEAD~1
Amend Last Commit:
# Change commit message
git commit --amend -m "new message"
# Add forgotten files
git add forgotten-file.txt
git commit --amend --no-edit
Revert Commit (already pushed):
# Create new commit that undoes changes
git revert commit-hash
# Revert multiple commits
git revert commit1 commit2 commit3
# Revert merge commit
git revert -m 1 merge-commit-hash
Recover Deleted Files:
# File deleted but not committed
git checkout HEAD file.txt
# File deleted and committed
git log --all --full-history -- file.txt
git checkout commit-hash -- file.txt
Cleaning Repository
Remove Untracked Files:
# Dry run
git clean -n
Sponsors
Details
- Repository
- github.com/personamanagmentlayer/pcl
- Categories
- Git & Pull Requests, Release Management
- First seen
- Jun 3, 2026
More from personamanagmentlayer/pcl
All 99- Python Expert275
- Redis Expert270
- Php Expert265
- Grafana Expert263
- Sql Expert257
- Research Expert253
- Cpp Expert248
- Helm Expert245
- Ai Engineer Expert239
- Quantum Expert238
- Finops Expert236
- Iot Expert236
- Snowflake Expert236
- Biological Expert233
- Security Expert228
- Aws Expert226
- Aerospace Expert225
- Scala Expert224
- Standards Expert224
- Flask Expert223
- Csharp Expert219
- Maritime Expert219
- Kafka Expert218
- Fastapi Expert216