Back to browse
GitHub Repository

Create snapshot commits on a not checked-out branch without touching the working tree or losing staged changes

17 starsShell

Git command for creating snapshot commits on a not checked-out branch

by meribold·Mar 15, 2026·4 points·1 comment

AI Analysis

●●SolidNiche GemSolve My Problem

Commit to other branches without checking out or stashing your work.

Strengths
  • Avoids the error-prone stash-switch-commit-switch-pop workflow entirely for patching old branches.
  • Uses Git plumbing safely to preserve current working tree state.
  • Single binary installation is simpler than managing multiple git worktrees.
Weaknesses
  • Niche use case; most developers rarely need to commit to inactive branches.
  • Lacks integration with GUI clients that expect standard checkout flows.
Target Audience

Git power users, maintainers patching old branches

Similar To

git worktree · git commit-tree

Similar Projects