Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I add a sibling directory as a git submodule?

Tags:

git

When I try doing this I get following error:

fatal: '../web' is outside repository
like image 903
Mohsen Avatar asked Oct 22 '22 02:10

Mohsen


1 Answers

You can, if that sibling directory is a git repo.

But it is best, as in this example, to use the full path of that web folder.

like image 69
VonC Avatar answered Oct 30 '22 00:10

VonC