I am trying to get only a folder from an external github repository for use in my project.
I want my project setup to be like this:
-my_project -submodule -code.py -MY_README -.git
And I have a remote repo with a submodule name with the following structure:
-submodule -code.py -README -.gitignore
So, I just want the submodule folder to be added to my project.
But I get it after
git subodule add http://github.com/user/submodule.git submodule
-my_project -submodule -submodule -code.py -README -.gitignore -MY_README -.gitignore
I'm new to git, so I really don't know if only git can be used. If that helps, I use msysgit for windows.
So, is there anyway that I can get a clean submodule folder in my project from a public repo?
If you are interested in what exactly I am trying to do, I try to take these django 1 2 plugins directly from my repositories to add them to my project.
git git-submodules
demula Oct 05 2018-10-10 18:45
source share