前提・実現したいこと
UnityでGitHubを使ってデータをネットに挙げれるようにしたいです。
発生している問題・エラーメッセージ
SourceTreeを使ったのですが、データをコミットさせて、pushさせようとしたところ、
git -c diff.mnemonicprefix=false -c core.quotepath=false push -v --tags --set-upstream origin master:master
Pushing to https://~~~
To https://~~~
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'https://~~~
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.
というエラーが出ました。
ヒントにあるようにpullを押してみたのですが、そうしたら、
git -c diff.mnemonicprefix=false -c core.quotepath=false fetch origin
git -c diff.mnemonicprefix=false -c core.quotepath=false pull origin master
From https://github.com/YanaseGame/Quiz
branch master -> FETCH_HEAD
fatal: refusing to merge unrelated histories
エラー終了しました。エラーの内容は上記をご覧ください。
というエラーが起きました。
どのようにすれば解消されるのでしょうか?教えて頂けると嬉しいです。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/05/31 13:41
2018/05/31 13:46
2018/05/31 14:08
2018/05/31 14:14
2018/05/31 14:19
2018/05/31 14:34
2018/06/01 11:00
2018/06/01 12:06
2018/06/23 11:28 編集