To always show hidden files in Finder on MacOS.
Run the following command in your Terminal:
defaults write com.apple.finder AppleShowAllFiles TRUE
Afterwards type in Terminal:
This shuts down and relaunches finder with this new setting enabled. Now you see them dotfiles!
To quickly toggle hidden folders on or off while in Finder, you can use the keyboard shortcut:
Cmd + Shift + .