0
0

error: failed to push some refs to の解決

Posted at

git merge origin/master --allow-unrelated-historiesを使おう!

初心者エンジニア志望のメモです。
error: failed to push some refs to でpullなどしても解決しないときは

console
git merge origin/master --allow-unrelated-historie

を使うことで解決する場合があります。
このコマンドはgitで祖先が違うもの同士をmergeできるコマンドのようです。
とりあえずの解決策なのでより良い方法があったら教えていただけると幸いです。

参考
https://dev.classmethod.jp/articles/git-merge-option-allow-unrelated-histories/

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0