1. No public key configured to github
Just configure the key.
执行命令
这个会给整个电脑添加
ssh-keygen -o
或者给具体邮箱添加
ssh-keygen -t rsa -C "这里换上你的邮箱"
通过git config --globle --list 查看git信息
You can specify a directory or choose the default. The default is user/.ssh/id_rsa.
By default, two files id_rsa and id_rsa.pub will be produced.
We need to put id_rsa.pub on github.
Generating public/private rsa key pair.
Enter file in which to save the key (C:\Users\Administrator/.ssh/id_rsa): g:\rsa
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in g:\rsa.
Your public key has been saved in g:\rsa.pub.
Set github setting->ssh.
2. Accidentally checked the Push tag option
Sometimes because I forgot to check the option below, I accidentally checked it. Checking this option will cause the submission to fail. The default is not checked.
3. git command operation error
For example, set the upstream address through the command line or something.
You're not using the correct parameters, or you've got something wrong. If you are a new project, you can delete the .git file directly (the history will be lost), and then automatically bind to github through the share to github function provided by Idea. If it is an old project, reset it again.