<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>itechblog</author_name>
  <author_url>https://blog.hatena.ne.jp/itechblog/</author_url>
  <blog_title>Webエンジニアのメモ帳</blog_title>
  <blog_url>https://itechblog.hatenablog.com/</blog_url>
  <categories>
    <anon>技術メモ</anon>
  </categories>
  <description>gitでコミットをまとめる手順を説明します。 例えば、ブランチを切り、ファイルを修正してコミットしたが、修正内容にミスがあったことに気づき、再びコミット、プッシュしたような場合を考えます。 # 本当は「あ」と書きたかったとする echo &quot;い&quot; &gt; a.txt # コミット git add a.txt git commit -m &quot;a.txtを作成&quot; # 間違いに気づいたので修正 echo &quot;あ&quot; &gt; a.txt # 再度コミット git add a.txt git commit -m &quot;a.txtの内容が間違っていたので修正&quot; この2つのコミットをまとめることを考えます。 まずは以下のコマン…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fitechblog.hatenablog.com%2Fentry%2F2019%2F11%2F02%2F2019-11-02-073436%2F&quot; title=&quot;【Git】コミットをまとめる方法 - Webエンジニアのメモ帳&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>2019-11-02 07:34:36</published>
  <title>【Git】コミットをまとめる方法</title>
  <type>rich</type>
  <url>https://itechblog.hatenablog.com/entry/2019/11/02/2019-11-02-073436/</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
