今天使用在自己笔记本本地磁盘上使用Git命令行执行"git push"然后输入github的用户名和密码之后,报如下错误: ![rejected] master->master(fetch first) error:failed to push some refs to 'https://github.com/xxx/xxx.git' 最后执行git pull,然后再执行push就可以了: 原因是:刚才在网站上改了README.md文件,添加了一些项目的说明,然后使用Git客户端
提交遇到Error "remote ref does not exist"解决办法:git fetch -p MY_REMOTE eg. git fetch -p origin 注:The -p option tells fetch to delete any tracking branches that no longer exist in the corresponding remotes; by default they are kept around 译:-p告诉