VS Code - How to exclude __pycache__ from Git?

I have a repo for my addon in GitHub, but changes to pycache keep getting picked inside of VS Code. Does anyone know how the .gitignore file should be setup to prevent this from happening. I currently have :

pycache/init.cpython-37.pyc
pycache/
*.pyc

Any help is appreciated on this!

Thanks