This article is a mirror article of machine translation, please click here to jump to the original article.

View: 8841|Reply: 0

git push failed to push some refs to git

[Copy link]
Posted on 2/13/2017 10:41:41 AM | | | |
When using git to push source code to gitHub, you may get an error: failed to push some refs to git.


The main reason for the error as shown in the image above is that the README.md file in GitHub is not in the local code directory.


You can merge github with local code with the following command:
git pull --rebase origin master
After executing the above code, you can see that there are more README.md files in the local codebase.

Re-execute the previous git push command, success!






Previous:The git version control tool is logged in to github
Next:Git in action – Commit your local project to github/gitlab
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com