2 errors about git push -u 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

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=327011881&siteId=291194637