git add only text files from directory

C++
$ git add Documentation/\*.txt
Source

Also in C++: