找到这个终端
软件

1.需要显示 .git 文件
终端窗口,输入:
defaults write com.apple.finder AppleShowAllFiles TRUE
1.1然后重启Finder,输入:
killall Finder
2.如果你完成了需要的操作,恢复隐藏设置
,同样打开Terminal终端窗口,输入:
defaults write com.apple.finder AppleShowAllFiles FALSE
2.1 然后重启Finder,输入:
killall Finder