failed to push some refs to '[email protected]:OLitlleStone/mongodb.git' hint: Updates were rejected be...

这个的主要的错误是因为,当你在git init的时候,在你的文件中只出现了.git 而没有出现README.md。所以你才上传不上去。解决这个问题的方法就是先利用

git pull --rebase origin master。这时你的文件夹里面会出现README.md这个文件夹。 然后在用

git push origin master就可以进行上传上去了

failed to push some refs to '[email protected]:OLitlleStone/mongodb.git' hint: Updates were rejected be...