Git Push失败 解决办法


Pushing to [email protected]:rickyfeng/wenda.git
To [email protected]:rickyfeng/wenda.git
 ! [rejected]        master -> master (non-fast-forward)
error: failed to push some refs to '[email protected]:rickyfeng/wenda.git'
To prevent you from losing history, non-fast-forward updates were rejected
Merge the remote changes (e.g. 'git pull') before pushing again.  See the
'Note about fast-forwards' section of 'git push --help' for details.


解决办法:

1.git pull -f --all

2.git push -u origin master -f

试试,可以参考

http://blog.csdn.net/shiren1118/article/details/7761203

你可能感兴趣的:(iOS)