<aside> <img src="https://s3-us-west-2.amazonaws.com/secure.notion-static.com/5f6e7806-7a2c-47fb-867b-54742c37b10e/透明画像10001000.png" alt="https://s3-us-west-2.amazonaws.com/secure.notion-static.com/5f6e7806-7a2c-47fb-867b-54742c37b10e/透明画像10001000.png" width="40px" /> ファストス
</aside>
Github
へ push
ができない場合の各対応についてまとめていきます。
もし記載されている情報以外の原因がある場合はコメントくださいませ。
Case1
Git pull にて 警告が表示される問題Git
のバージョンが 2.27.0 以上の人で git pull
を行うと 下記のような警告が表示される場合、git pull
の設定を行う必要があります。
hint: Pulling without specifying how to reconcile divergent branches is
hint: discouraged. You can squelch this message by running one of the following
hint: commands sometime before your next pull:
hint:
hint: git config pull.rebase false # merge (the default strategy)
hint: git config pull.rebase true # rebase
hint: git config pull.ff only # fast-forward only
git pull
の設定ヒントにも表示されていますが、デフォルト(今まで通り)の設定を反映しておきましょう。
$ git config pull.rebase false