本文介绍了我无法推动git?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

git push origin master 显示错误

这是什么?如何恢复这个?

解决方案

请参阅:

处理非快进错误
$ b



  $ git push origin master 
到../remote/
! [被拒绝] master - > master(非快速转发)
错误:未能将某些文件推送到'../remote/'
为了防止您丢失历史记录,非快进更新被拒绝
合并在再次推送之前远程更改。有关详细信息,请参阅'git push --help'的'非快进'
部分。








a href =http://www.kernel.org/pub/software/scm/git/docs/git-push.html#_note_about_fast_forwards =nofollow noreferrer> 关于快进的提示 git push ,正如的评论。


git push origin master shows an error

What is this? How to recover this?

解决方案

See the "pushing a branch" section from GitHub help page:

Dealing with "non-fast-forward" errors

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


Mode details on the "Note about fast-forwards" of git push, as mentioned by Michael Mrozek in the comments.

这篇关于我无法推动git?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-22 19:50
查看更多