---
name: git-rebase-helper
description: "Get command line instructions for performing interactive Git rebases. Use when the user wants help with Git Rebase Helper. Related topics: coding, workflow, git."
---

# Git Rebase Helper

Get command line instructions for performing interactive Git rebases.

## How to use this skill

1. Ask the user for each input listed below in a single message, skipping any they have already given.
2. Where options are listed, offer them, but accept other answers too.
3. Fill the answers into the prompt template, then follow the completed prompt to produce the result.

## Inputs

- **Target branch to rebase onto** (free text, e.g. "")
- **Interactive rebase (squash commits)** (choose one: Yes, No)
- **Number of commits back** (number from 1 to 50)

## Prompt template

## Introduction
Solve complex git history rebasing and branch conflicts.

## Git Details
- Target branch to rebase onto: {{Target branch to rebase onto}}
- Interactive rebase (squash commits): {{Interactive rebase (squash commits)}}
- Number of commits back: {{Number of commits back}}

---

Source: [Git Rebase Helper on PromptBuild](https://promptbuild.io/prompt/iQmtpb4dwScgTUvX69NL/git-rebase-helper)
