How do I add sub directory of directory as a git submodule?

Viewed 1586

I'm trying to add a submodule, as I normally would do, I did:

git submodule add -f -b master 'https://github.com/OrganicDesign/extensions/tree/master/MediaWiki/PdfBook/'

Only it gives me

fatal: repository 'https://github.com/OrganicDesign/extensions/MediaWiki/PdfBook/' not found since it does not recognize this as a git repository. 

Is there anyway to add this submodule (without having to fork anything; so I can keep the upstream)?

1 Answers
Related