git add only text files from directory code example Example: git add only text files from directory $ git add Documentation/\*.txt