The answer is simple and one. What ever you want to keep versioning you should add it in the git. All the others in the .gitignore . You can also write:
'Ctrl + click for git actions: ide://run?File=C:\Windows\explorer.exe&Args=%PROJECT%
and then use a git GUI like TortoiseGit in the explorer with right click for ease of use.