Skip to content
Back to skills

Common Issues

ASecurity

Sub-skill of git-advanced: Common Issues.

  • 17 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added September 9, 2026
documentationgobashgit

Security analysis

A100/100

Scanned September 9, 2026

npx -y skills add vamseeachanta/workspace-hub --skill common-issues --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Common Issues?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Common Issues
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vamseeachanta-common-issues-454052cb/badge)](https://www.skillsdirectory.com/skills/vamseeachanta-common-issues-454052cb)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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}
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.