0 votes
1 view
in Devops and Agile by (28.1k 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 (48k 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.

Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...