How do I add libraries to my git repository but not track them?

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?

Git Baby is a git and github fan, let's start git clone.