I've a Github project and I want to add submodule like following How to link folder from a git repo to another repo?
when I run the command
git submodule add https://github.com/expressjs/express
it works
But when I run
git submodule add https://github.com/expressjs/express/tree/master/lib
I got error not found , I want to add to my repository only sub folder and not all the repository, how can I do that ?