error: failed to push some refs【Linux】【Git】

来源:互联网 发布:java二级证书有用吗 编辑:程序博客网 时间:2024/06/06 05:31

转自VC错误:http://www.vcerror.com/?p=1763

问题描述:

使用git push时提示错误信息如下:

To https://name@bitbucket.org/name/mywork.git
! [rejected]        master -> master (non-fast-forward)
error: failed to push some refs to 'https://name@bitbucket.org/name/mywork.git'
To prevent you from losing history, non-fast-forward updates were rejected
Merge the remote changes before pushing again.  See the 'Note about
fast-forwards' section of'git push --help' for details.

 

解决方法:
具体的解决方法参考文章:http://www.vcerror.com/?p=1763

0 0