Skip to content

Instantly share code, notes, and snippets.

View yumtaufikhidayat's full-sized avatar
:octocat:
Focusing

Taufik Hidayat yumtaufikhidayat

:octocat:
Focusing
View GitHub Profile
@claraj
claraj / git_submodule_fix.md
Last active April 7, 2024 13:37
Fixing git submodule AKA git repo inside another git repo

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.