I’ve a stable and functioning project X. I want a module to be added to it and that’s is from some other project Y on github in my modules directory.
I’ve git remote add Y git@github.neel/Y.git followed by git fetch Y
But there there is nothing on Y directory yet . I followed http://progit.org/book/ch6-7.html
and also did the checkout but still the directory is empty
I don’t want to break my existing project for submoduling have I already done anything wrong with it ?
The commands you ran were as if
Ywas a clone ofX, which is not the case.Instead you have to register it as a submodule of
X, withgit submodule add, and check them out withgit submodule init --update