Visual Studio does not ignore files specified in the .gitignore file
This post is to help developers or mostly beginners who are facing issues related to the .gitignore file. It might be possible that Visual Studio or any other git tools like git CLI or TortoiseGit does not ignore files specified in the .gitignore file.