Open the project that you want to put under Git. From the main menu, choose VCS | Create Git Repository. In the dialog that opens, specify the directory where a new Git repository will be created.