You should download a .gitignore for your project type and customize it to meet your needs. If your project doesn't fit a template, you can create a empty .gitignore from the command line by navigating to your Git repo and running one of the following commands:
Windows
> fsutil file createnew C:\Usersrank\myrepo\\.gitignore 0
Linux and macOS
> touch /home/frank/myrepo/.gitignore