orphan-branch-file-storage

Store files on a Git branch using a temporary worktree.

1|1|Updated Jan 5, 2026
One-click install
npx skills add https://github.com/hyperjumptech/mediapulse --skill orphan-branch-file-storage
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: orphan-branch-file-storage
Source: https://github.com/hyperjumptech/mediapulse/tree/main/.cursor/skills/orphan-branch-file-storage
Command: npx skills add https://github.com/hyperjumptech/mediapulse --skill orphan-branch-file-storage

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires git, python3, and includes scripts (resource) components.

What problem does it solve?

Stores one or more files on a dedicated Git branch using a temporary worktree—creates an orphan branch (empty tree) when the branch is new, or updates an existing branch after pulling when upstream exists. Use when the user asks to save, stash, archive, or store files in an orphan branch, a branch with only certain files, or a file-storage branch in this repository.

Core Features & Use Cases

  • Orphan-branch storage: create a new orphan branch with no history and store files
  • Existing-branch updates: fetch and pull upstream to merge stored content
  • Flexible inputs: repo-relative paths, absolute paths, and explicit source/destination mappings
  • Easy push: optional push after commit to remote with a single flag

Quick Start

From the repository root, run the script with a target branch and one or more paths to store on that branch.

Frequently Asked Questions about orphan-branch-file-storage

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

FAQPage Schema
How do I store files on a git orphan branch without keeping repository history?

To store files on a git orphan branch without history, this skill automates creating an empty orphan branch using a temporary worktree and commits your specified files directly to it, isolating them from your main repository history.

What is the best way to archive files in a separate git branch?

The best way to archive files in a separate git branch is using a temporary worktree to isolate and commit them to a dedicated branch, which either creates a new orphan branch or updates an existing storage branch with an upstream fast-forward pull.

Do I need Python 3 to stash files on a dedicated git branch?

Yes, you need Python 3 and git installed to stash files on a dedicated branch, as the automation script relies on Python 3 for repository management and path resolution during the temporary worktree creation process.

Can I push archived files to a remote branch automatically?

Yes, you can push archived files to a remote branch automatically by using a single optional push flag after the script commits your stored files to the dedicated branch.

Does updating an existing file storage branch pull upstream changes first?

Yes, when updating an existing file storage branch, the script fetches and pulls upstream changes first to perform a fast-forward merge before applying your new file updates.

How do I map source files to different destination paths when archiving to a git branch?

You can map source files to different destination paths when archiving by providing explicit source-to-destination mappings, alongside support for standard repo-relative paths and absolute paths as inputs to the script.