node_modules .DS_Store .env
directory_to_exclude/
In Terminal, navigate to the location of your Git repository. Enter touch .gitignore to create a .gitignore file.
in .gitignore: folder/