If you have made any changes for a file, IntelliJ IDEA may will transfer this file to Git automatically. How to disable it to transfer? In this tutorial, we will introduce you how to do.
Step 1: Open file settings in IDEA
Step 2: Start to set version control
You can select Do not add, remove to disable IDEA to transfer files to git automatically.