git-status-reset

Inspect Git working directory state and reset or clean uncommitted changes.

2|Updated Aug 15, 2022
One-click install
npx skills add https://github.com/Knuckles-Team/repository-manager --skill git-status-reset
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git-status-reset
Source: https://github.com/Knuckles-Team/repository-manager/tree/main/repository_manager/skills/git-status-reset
Command: npx skills add https://github.com/Knuckles-Team/repository-manager --skill git-status-reset

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Developers often need to quickly assess and revert changes in a Git working directory to maintain a clean state after mistakes or experiments.

Core Features & Use Cases

  • Show concise status of tracked and untracked files and changes.
  • Perform resets (soft/hard/mixed) to a specific commit and/or clean untracked files.
  • Provide safety guidance and warnings to prevent irreversible changes.

Quick Start

Review the current state and reset or clean to restore a clean working directory.

Frequently Asked Questions about git-status-reset

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I reset my Git working directory to a clean state after uncommitted changes?

To reset your Git working directory, you can use git status to identify changes, then apply git reset with soft, mixed, or hard modes and git clean to remove untracked files. The Skill coordinates these operations with safety warnings to prevent irreversible data loss.

What is the difference between git reset soft, mixed, and hard?

Git reset soft moves HEAD but keeps staged and working changes, mixed unstages changes while keeping files, and hard discards all tracked changes entirely. The Skill supports all three modes and provides appropriate safeguards to help you choose safely.

How do I remove untracked files from my Git working directory?

You can remove untracked files from your Git working directory using git clean. The Skill coordinates git clean alongside git reset operations to restore a stable working state, providing warnings to prevent deleting files you intended to keep.

When should I use git reset hard instead of git clean?

Use git reset hard to discard tracked file modifications and return to a specific commit, while git clean targets untracked files not managed by version control. The Skill coordinates both to handle typical scenarios where you need a fully clean working directory.

Does this Skill provide safeguards against losing uncommitted Git changes?

Yes, the Skill provides safety guidance and warnings before executing reset and clean operations to prevent irreversible changes. It first identifies the current working directory state and uncommitted changes so you can review what will be affected.

Can I check my Git working directory status before running a reset?

Yes, the Skill shows a concise status of tracked and untracked files and changes before performing any reset or clean operations. This status check lets you review modifications and decide whether a soft, mixed, or hard reset is appropriate.