Remove file from Version Control in IntelliJ IDEA

There is a little trick.

  • Go to File Menu-> Settings | Version Control | Confirmation, then check the Show options before adding to version control setting under the When files are created section.
    Alternatively, you could check Do not add. It is mandatory that you do not check Add 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, click No.
  • Commit your local changes, and the files are removed from VCS.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)