Error: SRC refspec master does not match any. error: failed to push some refs to

after being associated with the remote warehouse,

when we push the file from the local warehouse to the online warehouse through the push command

has the following error

error: src refspec master does not match any.

error: failed to push some refs to

common cause:

1. The local git repository directory is empty

2. Local warehouse add not commit

3. Git init error

use the command git add + file name , add the file to the repository, and then push normally.

here are some of the errors I made while operating.

****************************************************************************************

when add HTML files in a double 叒 error

and then use git status to check the file status, found that the three files are still associated with the remote warehouse SSH file, the original file path is wrong,

and then switch the path, git add file, push file to finally submit the local warehouse to the online warehouse

Read More: