Explore Courses Blog Tutorials Interview Questions
0 votes
1 view
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:


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.


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!

28.4k questions

29.7k answers


94k users

Browse Categories