I am fairly new to Git and trying my best to find some documentation on this problem to no avail.
Here's my command:
$ git submodule add https://github.com/joliver/EventStore.git externalsource/JOliverEventStore/
fatal: Not a git repository: ../.git/modules/externalsource/JOliverEventStore Unable to checkout submodule 'externalsource/JOliverEventStore'
I am in my root of my repo and there is currently no directory for /externalsource/JO
liverEventStore/
. The error is talking about a directory that I have no knowledge of.
If I add the submodule to the root dir like this:
$ git submodule add https://github.com/joliver/EventStore.git JOliverEventStore
I have no problem and it creates the folder in the root directory.
Any insight would be greatly appreciated.
externalsource
directory and then cd'ing to it and adding the submodule? – PleasantryJOliverEventStore
in the original command. Perhaps git is too stupid to think that you want to checkout toJOliverEventStore
below the directoryJOliverEventStore
(which does not exists)? – Margheritamargi