1. Create a git repository: vcs->import int version control->Create git repository
2. Right-click on the project header->git->add
3. Right-click on the project header->git->commit director
4. Enter the commit director interface, click commit and push
5. There is a problem with push: Push to xxx/master was rejected
6. Solve the problem: Git-2.13.0-32-bit.exe (install first), in the project directory, right-click and select git bash here
7. Add the following command: git pull origin master --allow-unrelated-histories
8. Re-push in idea