There is a little trick.
- Go to
File Menu-> Settings | Version Control | Confirmation, then check theShow options before adding to version controlsetting under theWhen files are createdsection.
Alternatively, you could checkDo not add. It is mandatory that you do not checkAdd silently. - Delete the file you don’t want to be tracked by VCS.
- Press Ctrl + Z to undo the removal of the file.
If IDE shows a popup window which lets you choose whether or not to add the new file to VCS, clickNo. - Commit your local changes, and the files are removed from VCS.