"git submodule" comes back empty -


i use following sequence initialize , update git submodules:

git init git submodule init git submodule update 

then want see submodules, command:

git submodule 

it prints out nothing unfortunately.

my .gitmodules file in same directory , contains known working submodule definitions.

please note called git init first command. if didn't that, git submodule init complain there no valid git repository.

why git submodule not print anything?

from comments:

unless you've done git clone or git submodule add, you've not added submodules. presence of .gitmodules isn't enough - check in .git/config see if there lines [submodule foo]. if there's not, dont have submodules in repo, git submodule working should.


Comments

Popular posts from this blog

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -