Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top


Coming from a Linux background I still find Apples' modifications to the Unix hierarchy somewhat confusing. Nevertheless these subtle changes make it difficult for me to quickly do what I need.

  • I shall explain my scenario in a linux setting as it would make the most sense, then hope someone can translate this into BSD/OS X lingo.
  • I do not like GUI-based things if theres a CLI alternative.


I recently installed GIT so I could work on a number of projects from my MacBook, in linux one can define default config settings in /etc/gitconfig which is first loaded into the users' configuration and then merged with ~/.gitconfig.

When I create this default global git configuration file inside /etc/gitconfig it has not effect when I run my aliases, unless I specifically define them for each user on the machine.

Could someone please suggest to me exactly how this default behaviour works on OS X?

share|improve this question
up vote 1 down vote accepted

This might help someone I found this config in the following location: /usr/local/git/etc/gitconfig

share|improve this answer

You can try

git config --system -e 


git config --global -e 

to open the system and global config files in an editor. That will tell you what path git is looking for those files, by looking at the file it opens.

share|improve this answer

You won't believe it, but after installing Xcode 5.1.1 in Mavericks 10.9.3, now the --system path for my gitconfig is

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.