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