Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Show system files / Show git ignore in osx

Tags:

git

macos

By default it is not possible to see .gitignore files in osx. What is command to reveal these files?

like image 621
Jay Avatar asked Jun 25 '12 20:06

Jay


People also ask

How do I view .gitignore file on Mac?

Mac Finder: showing hidden files using keyboard shortcuts You can show hidden files by pressing the Command, Shift, and Period keys at the same time.

How do I see all my git ignore files?

Check if a single File is ignored by git To do this, execute the check-ignore command with the file path. It will output the file name if it is ignored by git.

Where can I find .git folder in Mac?

The installer from the git homepage installs into /usr/local/git by default. See also this answer. However, if you install XCode4, it will install a git version in /usr/bin.


1 Answers

Open the terminal and type

  • on OS X 10.8:

    defaults write com.apple.Finder AppleShowAllFiles TRUE 
  • on OS X 10.9:

    defaults write com.apple.finder AppleShowAllFiles TRUE 

Then you must relaunch finder:

killall Finder 

Any file name in OS X prefixed with a '.' is considered "hidden".

like image 110
Snarf Avatar answered Sep 28 '22 22:09

Snarf