I've just realised that i had spelled .gitignore wrong so it wasn't working DERP