stash-and-rebase

Stash local changes, rebase onto main, and reapply the stash in Git.

8|Updated Oct 26, 2025
One-click install
npx skills add https://github.com/sasamuku/dotfiles --skill stash-and-rebase
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: stash-and-rebase
Source: https://github.com/sasamuku/dotfiles/tree/main/.claude/skills/stash-and-rebase
Command: npx skills add https://github.com/sasamuku/dotfiles --skill stash-and-rebase

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill streamlines the process of stashing local changes, rebasing onto the latest main branch, and reapplying the stash, providing a quick and secure way to manage your local codebase.

Core Features & Use Cases

  • Stash Changes: Temporarily save local changes to avoid conflicts when merging.
  • Rebase onto Main: Ensure your branch is up-to-date with the latest main branch changes.
  • Reapply Stash: Quickly restore the stashed changes after rebase.
  • Use Case: Ideal for developers who want to ensure they have a clean main branch while working on feature branches.

Quick Start

Run the stash-and-rebase skill to manage your local changes efficiently.

Frequently Asked Questions about stash-and-rebase

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

FAQPage Schema
How do I stash local changes, rebase onto the latest main branch, and reapply the stash in Git?

To stash, rebase, and reapply, you can automate the entire sequence to securely save local changes, update your branch with the latest main branch, and restore the stash without manual conflicts.

What is the best way to manage local codebase changes before rebasing onto a main branch?

The best way to manage local codebase changes before rebasing is to stash them temporarily, pull the latest main branch updates, and then reapply the saved stash to ensure a clean and updated working state.

Can I automate stashing changes and rebasing onto the main branch with a single command?

Yes, you can automate stashing changes and rebasing onto the main branch with a single command, streamlining the workflow to securely save and reapply local modifications without manual intervention.

Do I need Git installed to automate stashing local changes and rebasing onto the main branch?

Yes, you need Git installed to perform stash and rebase operations, as the process relies on Git commands to temporarily save local changes, update your branch, and reapply the stash.

Why does rebasing onto the main branch require stashing local changes first?

Rebasing onto the main branch requires stashing local changes first to prevent conflicts, ensuring your local modifications are safely saved and can be reapplied after the branch is updated.