Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is .gitignore_global saved on OS X?

I have created a .gitignore_global file by running

git config --global core.excludesfile ~/.gitignore_global

However, I can't find the file in question in my file system? Where was it saved?

like image 355
Kokodoko Avatar asked Sep 10 '15 15:09

Kokodoko


People also ask

Where is global Gitignore file Mac?

gitignore_global . under the core section of your ~/. gitconfig file, which is the default path for the user-level config file.

Where is Gitignore saved?

gitignore file tells Git which files to ignore when committing your project to the GitHub repository. gitignore is located in the root directory of your repo. / will ignore directories with the name.

Where is global Gitignore located?

By default, the global gitignore path is ~/. config/git/ignore on Unix/macOS and %USERPROFILE%\git\ignore on Windows.


1 Answers

You can find the file location by running this command in Terminal:

git config --get core.excludesfile
like image 200
Cloud9999Strife Avatar answered Oct 29 '22 15:10

Cloud9999Strife