本番環境でコンフリクトした場合

$ git pull origin master

 

error: Your local changes to the following files would be overwritten by merge:
xxxxxxxx

public/xxxxxxxx.txt

Please commit your changes or stash them before you merge.
Aborting

 

 

強制的にマージする

# 1) リモートの最新を取ってきておいて・・
git fetch origin master

# 2) masterを、リモート追跡のmasterに強制的に合わせる
git reset --hard origin/master

 

本番環境でpullしたらコンフリクト?解決法3パターン!【Please commit your changes or stash them before you merge】 - Qiita