nop-git-bundle

Packages unpushed Git commits into verified .bundle files for offline synchronization.

693|100|Updated Aug 18, 2022
One-click install
npx skills add https://github.com/entropy-cloud/nop-entropy --skill nop-git-bundle
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nop-git-bundle
Source: https://github.com/entropy-cloud/nop-entropy/tree/main/.opencode/skills/nop-git-bundle
Command: npx skills add https://github.com/entropy-cloud/nop-entropy --skill nop-git-bundle

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

When you cannot push commits directly to a remote repository—due to network isolation, offline environments, or cross-machine transfers—this Skill packages your unpushed commits into portable .bundle files that can be moved and applied elsewhere.

Core Features & Use Cases

  • Unpushed Commit Detection: Checks origin/$BRANCH..HEAD before packaging so you never export already-pushed history.
  • Single & Batch Export: Creates timestamped bundles for one repository or iterates over a list of project directories, storing everything in ~/sync/.
  • Integrity Verification: Runs git bundle verify after every export and supports restoring bundles on the receiving machine via git pull <bundle-file>.
  • Use Case: You finished work on a laptop without VPN access to the company Git server. Export the unpushed commits to a bundle, copy it via USB, and apply it on your office machine with git pull.

Quick Start

Ask the AI to export my current branch's unpushed commits to a verified bundle file in the sync directory.

Frequently Asked Questions about nop-git-bundle

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

FAQPage Schema
How do I export unpushed Git commits to a file?

Use git bundle create with the range origin/$BRANCH..HEAD to package only unpushed commits into a .bundle file. Always run git bundle verify afterward to confirm the file is valid before transferring it.

How to transfer Git commits between machines without network access?

Create a bundle file with git bundle create, copy it via USB or other media, then on the receiving machine run git pull <bundle-file> <branch> to apply the commits to the local repository.

Can I export multiple Git repositories to bundles at once?

Yes, iterate over a list of project directories, check each for unpushed commits with git log origin/$BRANCH..HEAD, and create a timestamped bundle per repository. Repositories without unpushed commits are skipped automatically.

What happens to uncommitted changes when creating a Git bundle?

Git bundles only contain committed history, so uncommitted working directory changes are excluded. Commit them first, export them as a patch with git diff, or stash them before creating the bundle.

Why does git bundle verify fail after export?

Verification fails when the bundle lacks prerequisite commits that the receiving repository does not have, or when the file is corrupted during transfer. Ensure the range starts from a commit present on the target and re-copy the file.