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.
p>
here are some of the errors I made while operating.
****************************************************************************************
when add HTML files in a double 叒 error p>
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
p>
Read More:
- Error: failed to push some refs to ‘xxx’
- Git failed to submit data error: failed to push some refs to’https://github.com/XXXXXXX/gif.git’
- [Git & GitHub] Solution: error: failed to push some refs to’https://github.com/xxxx.git’
- git push error failed to push some refs to solution
- Git uploads local IntelliJ idea project to GitHub
- pathspec ‘master’ did not match any files known to git
- [Git] git pull pull remote git push to remote git commit submit reject
- error: src refspec master does not match any error:failed to push some refs to ‘[email protected]:xxxx
- How to Fix GIT Push Error
- How to solve error: failed to push some refs to ‘[email protected]:……git pull conflict
- Common solutions to errors in checkout or commit of SVN
- GitHub upload failed: git push error: failed to push some refs to exception handling
- [Solved] ERROR: commit 60acc70: missing Change-Id in message footer
- Using GitHub in vs2017
- Git push “fatal: Authentication failed ”
- Please specify which branch you want to merge with
- Pull is not possible because you have unmerged files. Please, fix them up in the work tree, and then
- GitHub push ErrorThe requested URL returned error: 403 Forbidden while accessing