我不在分支上,并且是当前唯一推送到流中的人,为什么当我这样做时
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
作品就好了。