1. Open intellij idea, click Configure, settings
2. Expand version control on the left, click git, and click the button in the red box.
3.find git.exe in the pop-up window and click
4. Click OK to complete the settings.
5. Return to the welcome page, click check out from version control, and then click git
6. Run the following commands to export (note that the parent directory must be an existing folder; otherwise, a warning will be reported). After entering the information, click the clone button.
7. Then, a dialog box is displayed. Enter the user name and password. Click OK.
8. Then, a dialog box will pop up asking you to specify a master password. You can set a password by yourself. This password will be used in future code updates.
9. After the check-out is completed, a dialog box will pop up asking whether to create a project. Then, select No
10. Click openproject, select D: Workspace \ gframe-project \ gframe-parent \ Pom. XML, and click OK.
11. Click Enable version control integration under the VCs menu
12. Select git and click OK.
13. after intellij idea 13 is installed, the interface after opening the project is different from the previous one. You need to click the View menu at the top to check the toolbar, tool buttons, Status Bar, and navigation bar.
14. Find the Changes button under intellij and click Open changes. All the changed files with the submitted version are displayed.
15. by default, changes has two parts. Default is in bold and is the default group. Changes to version-controlled files are displayed in default. unversioned files indicates files that have not been added to the version library. Right-click any file in the. idea folder in the unversioned files group and select ignore to ignore intellij IDEA project files from the version library.
16. in the pop-up window, select the second option to direct the directory. idea, click OK (the first is to ignore the specified file, the second is to ignore the files in the specified folder, and the third is to ignore all files with matching expressions)
17. In the changes list, right-click a file with the IML extension and select ignore to ignore intellij engineering files from the version library.
18. In the displayed window, select the third item, enter *. IML, and click OK.
19. Click the refresh button on the left side of changes. The unversioned files group should disappear because it does not contain any files.
Intellij idea detects code from git and creates a project