git-find-fork

Compute the true fork point of a Git branch despite history rewrites.

31|6|Updated Dec 13, 2025
One-click install
npx skills add https://github.com/MatiasComercio/agentic-config --skill git-find-fork
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: git-find-fork
Source: https://github.com/MatiasComercio/agentic-config/tree/main/core/skills/git-find-fork
Command: npx skills add https://github.com/MatiasComercio/agentic-config --skill git-find-fork

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automatically detects where your branch truly diverged, even when history has been rewritten multiple times.

Core Features & Use Cases

  • Branch Analysis: Identifies the actual merge-base and fork point, handling complex rebase scenarios automatically.

Quick Start

Find where the current branch forked from main.

Frequently Asked Questions about git-find-fork

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

FAQPage Schema
How do I find the true fork point of a Git branch after rebases?

Git fork point detection identifies the actual merge-base of your branch despite history rewrites. This Skill computes the true divergence point by analyzing branch history, handling rebases and squashes automatically to reveal where your branch truly split from its parent.

Can I detect if my Git branch history has been rewritten?

Yes. This Skill analyzes your branch and outputs indicators showing whether history has been rewritten through rebases or squashes. It compares the current state against the computed fork point to flag any modifications to the branch timeline.

How do I identify the merge-base when branch history is unknown or complex?

This Skill automatically computes merge-base across local and remote contexts, even when the parent branch is unclear or the history contains multiple rebases and squashes. It outputs the merge-base alongside commits since fork and rewrite indicators.

What Git metadata does branch fork point analysis provide?

Fork point analysis outputs branch name, HEAD, parent branch, merge-base, commit count since divergence, and boolean flags for history rewrites and squashes. This metadata helps you understand your branch's true origin and how it has evolved.

Do I need to manually track parent branches to find fork points?

No. This Skill uses Bash scripting and Git commands to compute fork points automatically without manual parent tracking. It handles unknown parents and complex rebase scenarios, eliminating the need to remember or manually specify branch relationships.