It's quite common that you might want to create a new .gitignore file in one of your nested folders to have better control on the files to be included or excluded. If you try to create the file straightaway, the windows explorer won't allow you to do that. Then how can you do that? Here are the steps:
- Browse to the target folder
- Right-click -> New -> Text Document
- Rename file name as - '.gitignore.' (note the Period in the end)
- You might get a prompt for file rename, select Yes
And, you are done. Hope this helps.