git-history

Reword, reorder, split, and undo git commits non-interactively.

1|Updated Jan 13, 2026
One-click install
npx skills add https://github.com/wgordon17/personal-claude-marketplace --skill git-history-wgordon17
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: git-history
Source: https://github.com/wgordon17/personal-claude-marketplace/tree/main/git-tools/skills/git-history
Command: npx skills add https://github.com/wgordon17/personal-claude-marketplace --skill git-history-wgordon17

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Non-interactive git history manipulation enables AI agents to modify commit history without interactive prompts or editors, reducing friction and preventing unsafe prompts.

Core Features & Use Cases

  • Reword commits with git reword -m "message" <sha> to update messages non-interactively.
  • Move commits (and descendants) with git branchless move -s <src> -d <dest> to reorder history safely.
  • Move exact commits with git branchless move -x <sha> -d <dest> to relocate a single commit.
  • Split large commits using the manual reset workflow described in BRANCHLESS.md to split into multiple commits.
  • Undo operations with git branchless undo --yes to recover from mistakes.
  • View the commit graph with git sl and restack with git restack to repair graphs.
  • Create commits non-interactively with git branchless record -m "message".

Quick Start

Initialize the repository with git branchless init and immediately perform a non-interactive history operation like git reword -m "message" <sha>.

Frequently Asked Questions about git-history

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

FAQPage Schema
How do I reword a git commit message without opening an interactive editor?▼

You can reword a git commit non-interactively by running git reword -m "message" <sha>, which updates the commit message directly without launching an interactive rebase editor.

What is the best way to reorder or move commits in git without an interactive rebase?▼

The best way to reorder commits non-interactively is using git branchless move -s <src> -d <dest> to safely relocate commits and their descendants without interactive prompts.

How do I undo a git history modification if I make a mistake?▼

You can undo a git history modification by running git branchless undo --yes, which recovers your repository state from mistakes without requiring interactive confirmation.

Can I split a large git commit into multiple smaller commits non-interactively?▼

Yes, you can split a large git commit using a manual reset workflow described in the branchless documentation, allowing you to break a single commit into multiple non-interactive commits.

Does non-interactive git history manipulation work with local branches and PR workflows?▼

Yes, non-interactive git history commands apply to rewording, reordering, splitting, and squashing commits across both local branches and pull request workflows safely.

How do I initialize my repository to support non-interactive git history commands?▼

To initialize your repository for non-interactive git history commands, run git branchless init first, then immediately perform operations like git reword or git branchless move.