github提交失败:error: failed to push some refs to https://github.com/***/git.git
1.问题在github远程创建仓库后, 利用gitbash进行提交本地文件的时候出现如下错误:报错:error: failed to push some refs to ‘https://github.com/***/git.git’2.原因远程仓库与本地仓库依赖不同,所以会导致本地仓库提交失败。3.解决办法先使用pull更新本地仓库,使本地仓库与远程仓库保持一致,然后再push到远程仓库先pullgit pull origin master 后pushgit push -u ori