Search code examples
gitgit-submodules

How can I add a file to a git submodule?


I want to make a Python package out of a repository that I've added as a submodule to my repository. Is there a way to add a __init__.py file to this submodule and to track it in the parent repository?


Solution

  • If you add any file in that submodule repo, you will have to: