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-code

Installs 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
1sickn33 avatarcreate-prsickn33/antigravity-awesome-skillscreate pr260skills.sh installs
2skillcreatorai avatarchangelog-generatorskillcreatorai/ai-agent-skillschangelog generator260skills.sh installs
3autumnsgrove avatargit-workflowsautumnsgrove/groveenginegit workflows212skills.sh installs
4buiducnhat avatarreviewbuiducnhat/agent-skillsreview210skills.sh installs
5cloudai-x avatarmanaging-gitcloudai-x/claude-workflow-v2Manages Git workflows including branching, commits, and pull requests. Use when working with Git, creating commits, opening PRs, managing branches, resolving co210skills.sh installs
6sickn33 avatarteam-collaboration-issuesickn33/antigravity-awesome-skillsteam collaboration issue203skills.sh installs