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?

  • Pull request in GitHub does not show merge conflict was fixed and doesn't show my commits
  • Workflow for GitHub-based code review
  • Cloning an older version of github repo
  • Exception “working tree already exists” while cloning GIT repo in pre-push hook
  • Why all my Xcode commits to Bitbucket show other user 'Author Name' on Bitbucket?
  • Git: Should I ignore the Index or is there a killer application for it?
  • Reproducing Git merge conflict: DD
  • Git Show to different editor
  • How do I list and fetch remote branches after SVN to Git migration?
  • SourceTree can't push to Bitbucket
  • Bash script to extract filenames from git whatchanged
  • Git: How to commit into SVN branch after rebase?
  • 2 Solutions collect form web for “Where is .gitignore_global saved on OS X?”

    I have created a .gitignore_global file using the command […]

    The command

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

    does not create any file. In other words, if ~/.gitignore_global did not exist beforehand, running that command does not create it.

    The semantics of that command are

    Set the path of the user-level (because of the --global flag) Git ignore file to ~/.gitignore_global.

    In terms of implementation, that command adds the following entry

    excludesfile = ~/.gitignore_global

    under the core section of your ~/.gitconfig file, which is the default path for the user-level config file. See this section of the Pro Git book for more details about the three levels (system, user, repository) of Git configuration files.

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

    git config --get core.excludesfile
    Git Baby is a git and github fan, let's start git clone.