<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>karlley_jp</author_name>
  <author_url>https://blog.hatena.ne.jp/karlley_jp/</author_url>
  <blog_title>時々とおまわり</blog_title>
  <blog_url>https://karlley.hatenablog.jp/</blog_url>
  <categories>
    <anon>Git</anon>
    <anon>Tips</anon>
  </categories>
  <description>gitでコンフリクトが発生して手動ではなく一括で変更を反映したかったのでやり方を調べました。 結論 git checkout --ours ファイルパス、git checkout --theirs ファイルパス を使う。 --ours: 取り込み側の変更を残す --theirs: 取り込まれる側の変更を反映する merge とrebase で取り込み側の向き逆になるので注意が必要 merge カレントブランチ(branch_B)が取り込み側になる。 branch_B &lt;- branch_A のイメージ。 $ git checkout branch_B $ git merge branch_A …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkarlley.hatenablog.jp%2Fentry%2F2022%2F11%2F08%2F061744&quot; title=&quot;gitでコンフリクトした時に変更を一括で反映する - 時々とおまわり&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-11-08 06:17:44</published>
  <title>gitでコンフリクトした時に変更を一括で反映する</title>
  <type>rich</type>
  <url>https://karlley.hatenablog.jp/entry/2022/11/08/061744</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
