When there are a submodule inside the folder and it is not a remote repository.
.
├── submodule
│ └── submodule.md
└── test.md
Inside this root directory, there are a submodule repo.
You can add it by
git submodule add git:submodule submodule
Then .gitmodules
will be created at root directory, and here is the content
[submodule "submodule"]
path = submodule
url = git:submodule
Top comments (0)