89

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?

4
  • Why on earth would you want to do that? Maybe try turning off the git integration? Commented Mar 4, 2016 at 1:18
  • 13
    Git integration is great, sometimes you just want to edit the .git/config file quickly though Commented Mar 6, 2016 at 22:07
  • 9
    @ChrisKitching .git/hooks is somewhere I'd like to be able to edit stuff easily with the benefits of an IDE. Commented Dec 16, 2021 at 17:46
  • 2
    Or, you are using some interesting tool like git filter-repo that outputs the report to .git/filter-repo. There are just so many cases where being able to toggle this on and off would be great. Commented Feb 1, 2022 at 20:42

1 Answer 1

159

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 Types in the Settings dialog.
  • Remove .git from the table under the Ignored files and folders tab.

enter image description here

Sign up to request clarification or add additional context in comments.

3 Comments

On Mac, to bring the settings up ⌘-, (cmd-comma) works best.
On IDEA 2022.2 Ignored Files and Folders is on a tab next to Recognized File Types
@gerrytan thanks, I have updated my answer for this changed UI.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.