once you have a local repository you need to set up a github repository and have both repositories remotely synchronized, the first time you synchronize your code remotely
occursgit push-u origin master has problems:
error: src refspec master does not match any
error: failed to push some refs to '[email protected]:xxxxxxxx/xxx.git'
cause:
1. If the readme.md is not checked when the remote warehouse is created: commit to the remote library without any content in the staging area. If the empty staging area cannot be committed, add and commit
are required at least once
2. If the readme.md file on github is not in the local directory
resolved:
if question 1:
git add .
git commit -m “commit all local code to origin”
git push -u origin master
if question 2:
Git pull –rebase origin master
this is where you can see the local readme.md file
and now you can do git push-u origin master
p>
Read More:
- Error: SRC refspec master does not match any. error: failed to push some refs to
- error: src refspec master does not match anyerror: failed to push some refs to
- [Git & GitHub] Solution: error: failed to push some refs to’https://github.com/xxxx.git’
- Git failed to submit data error: failed to push some refs to’https://github.com/XXXXXXX/gif.git’
- GitHub upload failed: git push error: failed to push some refs to exception handling
- pathspec ‘master’ did not match any files known to git
- Solve github :error: failed to push some refs to problem
- How to solve error: failed to push some refs to ‘[email protected]:……git pull conflict
- git error: src refspec dev does not match any
- git push error failed to push some refs to solution
- Push failed Unable to access ‘https://github.com/‘: Failed to connect to github.com port 443: Timed
- Error: failed to push some refs to ‘xxx’
- Failed to push some refs to
- Git uploads local IntelliJ idea project to GitHub
- Android studio push project to GitHub
- Problem solving: failed to connect to github.com port 443: Operation timed out(2020.06.04)
- fatal: unable to access ‘https://github.com/xxx‘: Failed to connect to github.com
- GitHub push ErrorThe requested URL returned error: 403 Forbidden while accessing
- Solve GitHub push error 403 Forbidden while accessing