Visual Studio Git integration (.gitignore)

Git integration for VS makes me headaches. It ignores the .gitignore (oh irony). I’ve tried to get EZ-GIT, but seems it has same issue. How does Epic handle it?

I believe Epic probably uses Perforce and not git, but I use git from the terminal instead of using the Visual Studio integrated git. Have you tried that?