I'm trying to create a Github repository for a friend's project (a video game), but can't get the .gitignore file to work properly.
I'm attempting to ignore directories that contain image and audio files, as these aren't best stored on Github.
I've placed a .gitignore file in the root directory of the repository, and put rules in it to ignore the aforementioned directories, but can't push the repo to GH without pushing several thousand PNGs and WAVs.
Do I need to put my .gitignore inside of my .git folder?
Do I need to reinitialize the repository since I added the .gitignore after initialization?
Here is the content of my .gitignore
sprites/images/
sound/audio/