When pushing a local project to gitee for the first time, a similar error occurs:
error: src refspec master does not match any
error: failed to push some refs to 'https://gitee.com/xxx/irojects.git'
The solution is to pull first and then push:
git pull origin master
I thought it would be OK to push again, but it’s not:
% git push
fatal: The current branch master has no upstream branch.
To push the current branch and set the remote as upstream, use
Then you still have to operate like this:
git push -u origin master
Successful push!
Welcome to my official account and exchange study.
Read More:
- error: src refspec master does not match any error:failed to push some refs to ‘[email protected]:xxxx
- Error: SRC refspec master does not match any. error: failed to push some refs to
- git error: src refspec dev does not match any
- Git failed to submit data error: failed to push some refs to’https://github.com/XXXXXXX/gif.git’
- git push error failed to push some refs to solution
- [Git & GitHub] Solution: error: failed to push some refs to’https://github.com/xxxx.git’
- Error: failed to push some refs to ‘xxx’
- Solve github :error: failed to push some refs to problem
- GitHub upload failed: git push error: failed to push some refs to exception handling
- Failed to push some refs to
- pathspec ‘master’ did not match any files known to git
- How to solve error: failed to push some refs to ‘[email protected]:……git pull conflict
- How to Fix GIT Push Error
- Error report after solving git push origin master
- Git push you are not allowed to upload merges
- GitLab You are not allowed to push code to this project
- Remote part of refspec is not a valid name in
- You are not allowed to upload merges in Git push