However, will it automatically remove these committed files from the repository?
No. Even with an existing .gitignore
you are able to stage "ignored" files with the -f
(force) flag. If they files are already commited, they don't get removed automatically.
git rm --cached path/to/ignored.exe