Skip to content

Latest commit

 

History

History
22 lines (17 loc) · 1.23 KB

File metadata and controls

22 lines (17 loc) · 1.23 KB

Mission: Git Submodule Management

Why

The user wants to manage their dotfiles repository using git submodules, specifically to maintain their Neovim configuration (nvim/.config/nvim) as a separate, trackable entity while keeping it embedded within the dotfiles repo. They know git but are unfamiliar with the specific workflows and pitfalls of submodules.

Success looks like

  • Can confidently add, update, and sync submodules in their dotfiles repo
  • Understands when to use git submodule update vs git submodule update --remote
  • Can recover from common submodule mistakes (detached HEAD, uncommitted changes, stale references)
  • Can set up a clean workflow for their own dotfiles repo (or similar multi-repo projects)
  • Knows how to help others clone their dotfiles repo and get the submodules working on first pull

Constraints

  • Prior knowledge: already knows git (branches, remotes, basic rebase, merge)
  • Time per session: short, quick lessons
  • Hands-on only: lessons must work against their actual dotfiles repo

Out of scope

  • Converting submodules to git subtree or external dependency managers
  • Deep internals of gitlink objects (the plumbing layer)
  • Submodules in very large monorepos with dozens of nested submodules