我在没有分支,目前谁推流,为什么当我做为什么我在git中遇到非快进错误?
git push
我得到的唯一的人:
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'https://github.com/dsak.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.
执行后git pull
的git push
作品就好了。
无有不承诺,不存在本地遥控器上,但反之则是正确的我添加的文件不属于远程到本地 – 0x90 2013-02-20 06:40:48
@ 0×90:如果你只是你不会得到这个错误添加提交到您的本地回购,这是远程主分支内容的直接后裔。您的本地回购中至少有一些提交与遥控器上的提交不同。 – mipadi 2013-02-20 19:05:11