- Add .gitignore file to your user directory (C:UsersMantas.gitignore)
- Update core.excludesfile file with Git Bash using this command:
Windows:
git config –global core.excludesfile “%USERPROFILE%.gitignore”
Linux:
git config –global core.excludesfile ‘~/.gitignore’