我正在尝试推送项目(所有文件都在新存储库中)。我按照步骤操作,但是当我按时出现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.
我多次收到此错误,无法解决该怎么办。
git push --force <remote_repository>
为我工作。