I\'m trying to get just a folder from an external github repo to use in my project.
I want my project setup to be like this:
-my_project -submodu
What you want to do is not feasible because you cannot clone a part of a repository.
See details in duplicate How to change a git submodule to point to a subfolder?