git-recall

Undo, rewrite, or improve git history with safety checks.

1|Updated May 4, 2024
One-click install
npx skills add https://github.com/mecattaf/dotfiles --skill git-recall
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git-recall
Source: https://github.com/mecattaf/dotfiles/tree/main/skills/git-history-mgmt
Command: npx skills add https://github.com/mecattaf/dotfiles --skill git-recall

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires python3, node, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps you safely undo, rewrite, and improve git history without risking data loss.

Core Features & Use Cases

  • Undo commits, rewrites, and reflog gymnastics using safe workflows.
  • Interactive rebase guidance and controlled history editing for multiple scenarios.
  • AI-assisted commit message improvement and history cleanup with safety checks.

Quick Start

Initiate a safe git history cleanup on the current branch by recalling recent commits and proposing a rewrite plan.

Frequently Asked Questions about git-recall

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

FAQPage Schema
How do I safely rewrite git commit messages to follow conventional formats?

To safely rewrite git commit messages, this Skill uses AI-assisted generation with built-in safety checks to propose conventional formats. It first creates a safe backup of your current state before modifying any commit history on your branch.

What is the best way to undo the last git commit without losing changes?

The best way to undo a git commit safely is through a controlled workflow that creates backups before reverting. This Skill provides explicit recovery steps and reflog guidance to ensure your changes are preserved and recoverable throughout the undo process.

How do I fix a failed git rebase or recover from a broken push?

To fix a failed git rebase or recover from a broken push, this Skill identifies the broken state and provides explicit recovery steps using reflog guidance. It ensures safe backups are created before attempting any history restoration to prevent data loss.

Can I use interactive rebase to reorder and squash git history without breaking shared branches?

Interactive rebase can reorder and squash git history safely when following controlled workflows. This Skill provides structured guidance for interactive rebasing with built-in safety checks to prevent breaking shared branches during history editing operations.

Do I need Python or Node installed to generate git commit messages with AI?

Yes, you need both Python3 and Node installed to run the scripts that power AI-assisted commit message generation. These dependencies execute the underlying scripts that analyze your git history and propose safe rewrite plans.

When should I not rewrite git history on my current branch?

You should not rewrite git history on shared branches where others are actively collaborating, as rewrites can break remote consistency. This Skill includes built-in safety checks to detect and prevent unsafe history editing on shared branch contexts.