git mergeでコンフリクトしたときにどちらかのファイルで上書きする
2025/08/21 12:44 | 公開 |
git merge <branch-name>
したときにファイルがコンフリクトして解決する方法
手元のファイル優先
git checkout --ours <conflicted-file>
マージするブランチのファイル優先
git checkout --theirs <conflicted-file>
2025/08/21 12:44 | 公開 |
git merge <branch-name>
したときにファイルがコンフリクトして解決する方法
手元のファイル優先
git checkout --ours <conflicted-file>
マージするブランチのファイル優先
git checkout --theirs <conflicted-file>