0 votes
1 view
in Devops and Agile by (29.9k 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:


But it is not ignoring this type of file, any idea what I am doing wrong?

1 Answer

0 votes
by (51.2k points)

You need to set up your global core.excludesfile configuration file to point to this global ignore file.


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 !