1. The first is that the connection is refused. The solution is: ssh -v [email protected] to view the connection status, it still shows rejected and: Agent admitted failure to sign using the key 、
Solution: ssh-add ~/.ssh/id_rsa
2. There is an error: src refspec master does not match any. and the error that cannot be pushed is the problem: because the project is empty, there is no add and commit, so at least one file must be submitted.
3. Force overwrite: git push -fu origin master
1. The first is that the connection is refused. The solution is: ssh -v [email protected] to view the connection status, it still shows rejected and: Agent admitted failure to sign using the key 、
Solution: ssh-add ~/.ssh/id_rsa
2. There is an error: src refspec master does not match any. and the error that cannot be pushed is the problem: because the project is empty, there is no add and commit, so at least one file must be submitted.
3. Force overwrite: git push -fu origin master