What is the value of option dired-listing-switches? If you are telling ls not to list dot files ("hidden" files) then they will not be shown by Dired.
Do you have dired-omit-mode turned on? If so, what are the values of options dired-omit-files and dired-omit-extensions?
Even with vanilla Dired, file names with extensions such as .git are matched by the default value of dired-omit-extensions, so they will not show when dired-omit-mode is turned on.
Do you see the same behavior if you start Emacs without your init file: emacs -Q and you use only vanilla Dired? If you start Emacs without your init file and you use Dired+?
Dired is quite configurable, and Dired+ is even more so. Whether to show such files is up to you.
dired-listing-switchesshould be set to-lain order to show "hidden" files. – NickD Apr 20 '19 at 14:25dired-listing-switchesis the list of switches thatdiredcallslswith. See the doc string fordired-listing-switchesand the man page forls. – NickD Apr 22 '19 at 16:48dired-omit-extensionsdoes contain.gitdirectory, when in thedired-omit-modeit still shows up. – mathway Apr 25 '22 at 23:54