`

github项目提交失败 master -> master (non-fast-forward)

 
阅读更多

提交项目的时候出现这个问题:

 

 

官方介绍:

https://help.github.com/articles/dealing-with-non-fast-forward-errors

 

 

我的解决方法是:

参考:

http://stackoverflow.com/questions/9661059/git-pull-rebase-upstream-git-push-origin-rejects-non-fast-forward

 

先执行git pull

然后再执行 git push --force origin master 替换原先的git push -u origin master

 

  • 大小: 109.6 KB
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics