By default, there are a lot of files that are hidden on a machine running macOS, the idea being that it makes the experience cleaner for the average user, however, most of us developers and freelancers need visibility of certain things like .git files for example.
Luckily its pretty easy to get these to show in your Finder windows:
1. Boot up Terminal (Applications > utilities)
2. Type/paste in “defaults write com.apple.finder AppleShowAllFiles YES”
3. Quit Finder and relaunch it. You can quit it by hitting command + option + esc
4. You should now be able to see all hidden files if you open a new Finder window.
Note: to reverse this process, do the same as above but instead of YES, replace with NO.