1. Configure GIT environment go to git official website https://git-scm.com/download git tool after download is complete, run Git bash, set user.name and user.email two parameters
$ git config--global user.name "Your name"
$ git config--global user.email "email@example.com"
Use the following statement to generate a key file, without a password, press the ENTER key
Ssh-keygen-t rsa-c "Email"
Add the generated public key file (user folder->.shh->id_rsa.pub) content to the GitHub account in SSH (click the Avatar->settings>ssh and GPG keys).
2. Set idea open settings->version control->github settings in auth type select password, and enter the GitHub username and password, click Test Verify click vcs- >import to Version Control->share project on GitHub based on your needs, select the file you want to share, and finally click Share to finish, Finally check your GitHub account for more than one repository if you add a new file later, you need to commit and push to GitHub via Vsc->git->push.