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?
gitignore_global . under the core section of your ~/. gitconfig file, which is the default path for the user-level config file.
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.
By default, the global gitignore path is ~/. config/git/ignore on Unix/macOS and %USERPROFILE%\git\ignore on Windows.
You can find the file location by running this command in Terminal:
git config --get core.excludesfile
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With