touch .gitignore
$ git config --global core.excludesfile ~/.gitignore
$ echo '.idea' >> ~/.gitignore
$ touch .gitignore
$ echo debug.log >> .gitignore
$ git rm --cached debug.log
rm 'debug.log'
$ git commit -m "Start ignoring debug.log"
*.<filename extension>
go to the gitignore file, add the name of the file to ignore
The purpose of gitignore files is to ensure that certain files not tracked by git remain untracked.
touch .gitignore
$ git config --global core.excludesfile ~/.gitignore
$ echo '.idea' >> ~/.gitignore
$ touch .gitignore
$ echo debug.log >> .gitignore
$ git rm --cached debug.log
rm 'debug.log'
$ git commit -m "Start ignoring debug.log"
*.<filename extension>
go to the gitignore file, add the name of the file to ignore
The purpose of gitignore files is to ensure that certain files not tracked by git remain untracked.