Git submodules in .gitmodules not initialized

https://github.com/Uni-/shBrushesCollection

I opened a GitHub repo and wrote .gitmodules in GitHub web source editor. When I cloned the rpo, I found the submodules in .gitmodules are not being initialized.

I think I tried almost all commands possible, including update, init, update –init and so on. Is there a way to use current .gitmodules file, not submodules add?

  • Does Google Code have anything comparable to GitHub pull requests?
  • Create a new repo and push all the code to created repo using octokit.rb - Rails
  • Attempting to rebase gives endless merge conflicts
  • Editor does not open when prompted to enter commit message
  • How to get the most recent commits git values from git api
  • Working with multiple repositories from different servers
  • Printing all kernel revisions where the patch is backported
  • How can I get the git repo on my server to automatically sync with changes to the github repo?
  • One Solution collect form web for “Git submodules in .gitmodules not initialized”

    Writing a submodule isn’t enough.

    You should rather use git submodule add: that will update your .gitmodules file and create a special entry in the index (where you want that submodule to be loaded).

    Then, when you push that to your upstream repo on GitHub, the project page will display those special entries as a green folder.

    green folder

    Git Baby is a git and github fan, let's start git clone.