$ git push -u origin master To email@example.com:TESTCOUNT11/learngit.git ! [rejected] master -> master (fetch first) error: failed to push some refs to 'firstname.lastname@example.org:TESTCOUNT11/learngit.git' 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.
后来发现，是因为本地仓库没有远程仓库的README.md 先用git pull --rebase origin master将README.md下载下来， 然后$ git push -u origin master就可以push到远程仓库了