touch .gitignore $ git config --global core.excludesfile ~/.gitignore $ echo '.idea' >> ~/.gitignore
*.<filename extension>
go to the gitignore file, add the name of the file to ignore