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?
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.
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.
By default . git directory is hidden inside working directory in windows.
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.
The .git directory is ignored by default. To see it in the project pane, do the following:
Help | Find Action...
Ctrl/Cmd+Shift+A and type "Settings")Editor | File Types
in the Settings dialog.git;
from the Ignore files and folders
text field at the bottomIf you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With