Why is my .gitignore
file blank in Windows (7) Explorer?
Note that both the .htaccess
file and the .git
folder appear as expected.
See:
GITIGNORE files are plain text files, meaning you can open one with any program that can read text files. If you're on Windows, you can use the built-in Notepad program, or Notepad++.
A . gitignore file is a plain text file that contains a list of all the specified files and folders from the project that Git should ignore and not track. Inside . gitignore , you can tell Git to ignore only a single file or a single folder by mentioning the name or pattern of that specific file or folder.
gitignore file tells Git which files to ignore when committing your project to the GitHub repository. gitignore is located in the root directory of your repo. / will ignore directories with the name.
That is because Windows think that .gitignore
is a file extension and hide the extension. And when there is nothing before the .
its empty.
Here is an image with shows how to change it in the settings.
If 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