Show system files / Show git ignore in osx

前端 未结 10 1760
暗喜
暗喜 2020-12-22 18:46

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

10条回答
  •  南笙
    南笙 (楼主)
    2020-12-22 19:01

    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".

提交回复
热议问题