You don't have to add your .idea
or .vs_code
directories to your .gitignore file every time you start new project.
Make it global.
- Create file:
touch ~/.gitignore
- Add what you want to ignore:
- for Debian/Ubuntu:
.idea or .vs_code or whatever you want :)
- for Mac:
.DS_Store
.vscode
whatever you want
Configure git to use it:
git config --global core.excludesfile ~/.gitignore
That's it.