第一次上传有可能会遇到push失败的情况,那是因为跟SVN一样,github上有一个README.md 文件没有下载下来 。我们得先 git pull --rebase origin master ,然后执行git push -u origin master 就可以成功啦 相关文章: