.gitignore blank in Windows Explorer

Why is my .gitignore file empty in Windows (7) Explorer?

Please note that both the .htaccess file and the .git folder are displayed as expected.

See http://prntscr.com/6rmhk1

(The standard StackOverflow image system does not work on my corporate network - it may be blocked).

+6
source share
1 answer

This is because Windows believes that .gitignore is a file extension and hides the extension. And when before . there is nothing empty.

Here is an image with shows how to change it in the settings.

http://i.stack.imgur.com/pPYB8.png

+11
source

Source: https://habr.com/ru/post/984904/


All Articles