Sub-skill of git-advanced: Common Issues.
Scanned 9/9/2026
Install to Claude Code
npx -y skills add vamseeachanta/workspace-hub --skill common-issues --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Common Issues?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/vamseeachanta-common-issues-e21d70c6)More formats (shields.io, HTML) on the badges page.
---
name: git-advanced-common-issues
description: 'Sub-skill of git-advanced: Common Issues.'
version: 1.0.0
category: operations
type: reference
scripts_exempt: true
---
# Common Issues
## Common Issues
**Accidental commit to wrong branch:**
```bash
# Move commit to new branch
git branch new-branch
git reset --hard HEAD~1
git checkout new-branch
```
**Undo merge:**
```bash
# If not pushed
git reset --hard HEAD~1
# If pushed
git revert -m 1 <merge-commit>
```
**Lost changes after checkout:**
```bash
# Check reflog
git reflog
# Recover from reflog
git checkout HEAD@{2}
```
**Resolve rebase conflicts:**
```bash
# During rebase conflict
git status
# Edit conflicted files
git add <resolved-files>
git rebase --continue
# Abort if needed
git rebase --abort
```
**Clean up after failed rebase:**
```bash
git rebase --abort
# Or
git reflog
git reset --hard HEAD@{n}
```
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!
Understand the components, mechanics, and constraints of context in agent systems. Use when designing agent architectures, debugging context-related failures, or optimizing context usage.