jj-history-cleanup

Clean and reorganize Git commit history using Jujutsu.

14|Updated May 28, 2024
One-click install
npx skills add https://github.com/cameronraysmith/vanixiets --skill jj-history-cleanup
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: jj-history-cleanup
Source: https://github.com/cameronraysmith/vanixiets/tree/main/modules/home/ai/skills/src/core/jj-history-cleanup
Command: npx skills add https://github.com/cameronraysmith/vanixiets --skill jj-history-cleanup

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the process of cleaning and reorganizing commit history, ensuring each commit is atomic, logically ordered, and clearly described, making your project history a clear narrative.

Core Features & Use Cases

  • Atomic Commits: Ensures each commit represents a single logical change.
  • Logical Ordering: Arranges commits to reflect dependencies and related changes.
  • History Rewriting: Provides tools to reorder, squash, drop, and reword commits without complex interactive sessions.
  • Use Case: After a period of rapid development with many small, intermediate commits, use this Skill to consolidate them into a few well-defined, review-ready commits before submitting a pull request.

Quick Start

Use the jj-history-cleanup skill to squash all commits with 'WIP' in their description into their respective parents.

Frequently Asked Questions about jj-history-cleanup

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

FAQPage Schema
How do I clean up Git commit history before a pull request?

To clean up Git commit history, you can reorganize commits to ensure each is atomic, logically ordered, and clearly described. This skill facilitates immediate, non-interactive history rewriting to consolidate intermediate commits into review-ready narratives.

What is the best way to squash WIP commits in Git?

Squashing WIP commits in Git is achieved by rewriting history to combine related changes into single, well-defined commits. This skill supports immediate squashing operations to consolidate rapid development commits without complex interactive sessions.

Can I reorder and reword Git commits without interactive rebasing?

Yes, you can reorder and reword Git commits without interactive rebasing by using immediate, non-interactive operations. This approach facilitates history rewriting and logical ordering while providing robust error handling via an operation log.

Does Jujutsu support dropping and splitting commits for history cleanup?

Jujutsu supports dropping and splitting commits to refine Git history. It facilitates atomic commit creation and efficient history rewriting through immediate operations, allowing you to drop unnecessary changes or split large commits into logical units.

How does an operation log help with Git history rewriting errors?

An operation log provides robust error handling during Git history rewriting by tracking immediate, non-interactive operations. If an error occurs during commit reordering, squashing, or splitting, the log ensures operations can be safely managed and recovered.

When do I need to refactor Git commit history?

You need to refactor Git commit history after a period of rapid development with many small, intermediate commits. Refactoring ensures your project history forms a clear narrative with atomic, logically ordered, and well-described commits before submission.