I cannot get .gitignore
to work with Visual Studio 2019 Community.
Above is an image of the "Team Explorer" tab showing a portion of the list of files which are to be committed. The directory in which these files appear, x64\Debug, is under C:\Users\username\Source\repos\Tetris_System\Tetris_Game. C:\Users\username\Source\repos\Tetris_System contains the .git
and .vs
folders and the .gitignore
file.
I have a very simple .gitignore
file with a single line in it:
*.obj
My understanding is, that this single line should remove all the *.obj
files from the commit list. Shouldn't those *.obj
files disappear from the list?
From previous commits, all those *.obj
are on the GitHub repository.