failed to push some refs to 'git@github.com:OLitlleStone/mongodb.git' hint: Updates were rejected because the tip of your current branch is behind hint: its remote counterpart. Integrate the remote c

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

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

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

原文地址:https://www.cnblogs.com/littleswan/p/11257051.html