Back
I want to set up Git to globally ignore certain files.
I have added a .gitignore file to my user root directory (Users/me/) and I have added the following line to it:
*.tmproj
But it is not ignoring this type of file, any idea what I am doing wrong?
You need to set up your global core.excludesfile configuration file to point to this global ignore file.
e.g.
Windows git bash:git config --global core.excludesfile '~/.gitignore'
Windows git bash:
git config --global core.excludesfile '~/.gitignore'
Hope this will resolve your query.
31k questions
32.8k answers
501 comments
693 users