hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.

解决办法:
$ git pull origin master
$ git push origin master
博客指出Git推送更新被拒,原因是远程仓库有本地没有的内容,通常由其他仓库推送到同一引用导致。给出的解决办法是先执行'git pull origin master',再执行'git push origin master'。
8106

被折叠的 条评论
为什么被折叠?



