Reputation: 764
I am using the DataTables jquery plugin in a project. I cloned the project into my libs/ folder and added it to my .gitignore file like this:
jslibs/DataTables/
When I cloned my own repo on another computer I didn't get the DataTables files. I guess this is because I was ignoring the directory. I need the files in DataTables for my project but did not want to track them since I had no need to modify them and they are part of their own repoo.
How can I make sure that when I clone my repo I get the DataTables files but still don't track them?
Upvotes: 1
Views: 1352
Reputation: 3765
It sounds like you want to use submodules.
In short: git submodule add https://github.com/DataTables/DataTables.git
Upvotes: 1