Add all files to the git index from the given directory.
Optional
The directory where the git repository is located.
A promise that resolves when the files are added to the index.
Add all files to the git index from the given directory.