Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Intellij doesn't show .git directory

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?

like image 770
cgsd Avatar asked Mar 03 '16 22:03

cgsd


People also ask

Why can't I see my .Git folder?

The . git folder is hidden to prevent accidental deletion or modification of the folder. The version history of the code base will be lost if this folder is deleted. This means, we will not be able to rollback changes made to the code in future.

How do I make a .Git folder visible?

If git inited, added and committed the folder with no problem then there is a . git folder there. If you can't see it in Windows Explorer then you need to enable the showing of hidden and system files and folders in Windows Explorer. The free eBook "Pro Git" is really helpful for getting up to speed with git.

Where is the .Git folder located?

By default . git directory is hidden inside working directory in windows.

How do I get Git options in IntelliJ?

One way to open the Git tool window is to hover over the quick access button in the bottom left of the IntelliJ IDEA window, and select Git. This will open the Git Log tool window. Alternatively, you can use ⌘9 (macOS), or Alt+9 (Windows/Linux), to open the Git Log tool window.


Video Answer


1 Answers

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 Ignore files and folders text field at the bottom
like image 192
Bas Leijdekkers Avatar answered Sep 22 '22 05:09

Bas Leijdekkers