我正在尝试推送我的项目(新存储库中的所有文件)。我遵循了这些步骤,但是当我使用git push -u origin master
推送时,我得到了这个错误:
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'git@github.com:asantoya/projectnewbies.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.
我收到这个错误很多次了,不知道该怎么办。
https://stackoverflow.com/questions/11696295
复制相似问题