【发布时间】:2019-01-31 10:49:03
【问题描述】:
当我输入git push origin master 时,git 会显示以下错误消息:
To https://github.com/farrasdoko/RumahSakit.git
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'https://github.com/farrasdoko/RumahSakit.git'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
然后,我输入 git fetch origin , git merge origin master & git pull origin master
从 git 显示以下错误消息:
From https://github.com/farrasdoko/RumahSakit
* branch master -> FETCH_HEAD
fatal: refusing to merge unrelated histories
怎么推??
【问题讨论】:
标签: git github version-control push