Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in DevOps and Agile by (29.3k points)

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?

1 Answer

0 votes
by (50.2k points)

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'

Hope this will resolve your query.

Browse Categories

...