Skip to content
Back to skills

Nested Git Repo Stash Safety

ASecurity

How to safely stash changes in a parent repo containing dirty nested git repositories

  • 17 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 9, 2026
businessgit

Security analysis

A100/100

Scanned September 9, 2026

npx -y skills add vamseeachanta/workspace-hub --skill nested-git-repo-stash-safety --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Nested Git Repo Stash Safety?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Nested Git Repo Stash Safety
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vamseeachanta-nested-git-repo-stash-safety/badge)](https://www.skillsdirectory.com/skills/vamseeachanta-nested-git-repo-stash-safety)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: nested-git-repo-stash-safety
description: How to safely stash changes in a parent repo containing dirty nested git repositories
version: 1.0.0
source: auto-extracted
extracted: 2026-04-10
metadata:
  tags: ["git", "submodules", "nested-repos", "stash", "workflow"]
---

# Nested Git Repo Stash Safety

When a parent repo contains a nested git repository (gitlink pointer), `git stash` in the parent only captures the SHA pointer to the nested repo, not the nested repo's actual working-tree changes. Modified files inside the nested repo are invisible to the parent's stash and will survive or be left behind unpredictably. Always manually snapshot or stash changes inside nested repos separately before performing parent-repo operations. Use `git status` to detect `m` (modified gitlink) entries indicating a dirty nested repo state.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.