I have the following folder structure:
mainFolder
>> contains '.git' and 'projectFolder'
projectFolder
>> contains '.gitignore' and 'Temp' folder alongwith other folders
Following are the contents of my gitignore file
*.bin
*.suo
*.user
projectFolder/obj
projectFolder/Temp
projectFolder/Library
Even though the /Temp folder is present in the gitignore, when I check the git status it shows up the Temp folder in the red untracked files list. I have tried using projectFolder/Temp/ as well, and moving the gitignore file to mainFolder. But nothing worked. How to fix this?
You should add this line to gitignore:
/[Tt]emp/
I always prefer to this Git Ignore file: