Skip to content

Instantly share code, notes, and snippets.

View kamalraj21intel's full-sized avatar

kamalraj21intel

View GitHub Profile
@claraj
claraj / git_submodule_fix.md
Last active November 8, 2023 18:34
Fixing git submodule AKA git repo inside another git repo
View git_submodule_fix.md

Problem, and symptoms:

You experience one or more of these symptoms

  • you have code in a directory but it's not being pushed to GitHub. You just see an empty directory icon
  • you see this message when you add code to your git repository from the command prompt
hint: You've added another git repository inside your current repository.
hint: Clones of the outer repository will not contain the contents of
hint: the embedded repository and will not know how to obtain it.