-1
我在Github控制檯上創建了新的Repo。
在Android Studio中,承諾並試圖推送到遠程,推送被拒絕。git push拒絕,拉不合格:致命:拒絕合併無關歷史
在工作室裏,我能夠與github建立成功的連接。
嘗試Git的拉採用了android工作室,得到了:
Git Pull Failed: fatal: refusing to merge unrelated histories
即使在混帳bash中得到這個:
>git push origin master<br/>
To https://github.com/XXXX.git
! [rejected] master -> master (fetch first)
error: failed to push some refs to 'https://github.com/XXX.git'
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
嘿,我解決我的問題,在鏈接,答案清清楚楚地寫着「選項,在合併獨立地開始了他們的生活兩個項目的歷史罕見的事件中使用。」我的解決方案很簡單,希望能幫助別人! – AskQ