<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yoshidashingo</author_name>
  <author_url>https://blog.hatena.ne.jp/yoshidashingo/</author_url>
  <blog_title>yoshidashingo</blog_title>
  <blog_url>https://yoshidashingo.com/</blog_url>
  <categories>
  </categories>
  <description>gitの鬼門と呼ばれることの多いsubmoduleだけど、submodule内でローカル編集などしててリモートリポジトリとの競合が発生する多くの場合、リセットしてリモートリポジトリと同期したいと思う。そんなときは $ cd &lt;submodule&gt; $ git fetch origin $ git reset --hard origin/master それで $ cd .. $ git submodule foreach git pull origin master $ git submodule update 忘れがちなので。（というかsubmoduleを更新したいときももちろん忘れずに） ﾝ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyoshidashingo.com%2Fentry%2F2015%2F08%2F04%2F111637&quot; title=&quot;git submodule update で発生した競合をリセットしたい場合 - yoshidashingo&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>https://cdn-ak.f.st-hatena.com/images/fotolife/y/yoshidashingo/20221209/20221209180444.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2015-08-04 11:16:37</published>
  <title>git submodule update で発生した競合をリセットしたい場合</title>
  <type>rich</type>
  <url>https://yoshidashingo.com/entry/2015/08/04/111637</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
