but when I looked at the file from the windows explorer. It says it's a text document. Isn't it supposed to be of the type File
Windows says your README is of type File
because it has no extension. In contrast, your .gitignore file has the extension .gitignore
which Windows has been configured to report (probably by the git-for-windows installer) the type Text Document
.