Add a .gitignore
to the directory that you want to be tracked, ignoring all files inside that dir.
Like so
# Ignore everything in this directory
*
# Except this file
!.gitignore
or if you want to be more specific, eg only csv files
*.csv
Also check ".gitignore exclude files in directory but not certain directories"