At first, I thought it was a JDK problem. Later, I changed the JDK version and did not fix it. Looking up the information on the Internet, we found that it might be a git problem.
Enter git config user. Name in terminal No corresponding user name was output.
Then configure the user name and mailbox
$ git config --global user.name usename
$ git config --global user.password password
$ git config --global user.password email