How I can I get Intellij to show the .git folder in the project viewer? I tried ctrl+alt+A and clicked "show hidden files and directories", but it doesn't switch to the "on" position, so I suppose that's not the way of going about this?
1 Answer
The .git directory is ignored by default. To see it in the project pane, do the following:
- Go to the settings (
Help | Find Action...Ctrl/Cmd+Shift+A and type "Settings"). - Navigate to
Editor | File Typesin the Settings dialog. - Remove
.gitfrom the table under theIgnored files and folderstab.
3 Comments
Holly Cummins
On Mac, to bring the settings up ⌘-, (cmd-comma) works best.
gerrytan
On IDEA 2022.2
Ignored Files and Folders is on a tab next to Recognized File TypesBas Leijdekkers
@gerrytan thanks, I have updated my answer for this changed UI.

.git/hooksis somewhere I'd like to be able to edit stuff easily with the benefits of an IDE.