1. Show hidden file: open terminal, execute code
defaults write com.apple.finder AppleShowAllFiles -boolean true;killall Finder
Shortcut key: [shift] + [command] + [.]
2. Delete the [. Git] folder, that is, delete the [. Git] folder contained in the folder
3. Cancel the display of hidden files: open the terminal and execute the code
defaults write com.apple.finder AppleShowAllFiles -boolean false;killall Finder
Shortcut key:[Shift] + [Command] + [.]