In terminal I ran:

defaults write com.apple.finder AppleShowAllFiles TRUE


killall Finder

If I CMD + SHIFT + G /usr/local/.git I can see the folder.

However, if I CMD + SHIFT + G and go to /usr/local I cannot see the folder.

  • 2
    <kbd> the key </kbd>
    – Ruskes
    Feb 27, 2015 at 17:00
  • you mean /usr/local/git, without using the (.) so not the /usr/local/.git
    – Ruskes
    Feb 27, 2015 at 18:13
  • @Buscar웃 I'm using a (.). The OP is correct as is. Now if that's the correct way to do it I dunno :) Feb 27, 2015 at 19:12
  • normally system wont let you use a (.) in front of a folder or file name. You can’t use a name that begins with a dot “.”, because these names are reserved for the system. Please choose another name.
    – Ruskes
    Feb 27, 2015 at 19:29
  • This is not a folder I created. It is a convention used by Git. The particular folder is part of the homebrew project. Feb 27, 2015 at 19:53

2 Answers 2


You have to let Finder know that you want a Boolean value (true or false):

defaults write com.apple.finder AppleShowAllFiles -bool TRUE

Shift-Command-Period shows and hides the files in open/save dialogs, it might work in the main Finder.

  • This does not work for me. Feb 27, 2015 at 19:55
  • Works for me on Sierra, but it might have been added fairly recently.
    – John Y
    Nov 6, 2017 at 20:00

Not the answer you're looking for? Browse other questions tagged .