<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ohsawa0515</author_name>
  <author_url>https://blog.hatena.ne.jp/ohsawa0515/</author_url>
  <blog_title>本日も乙</blog_title>
  <blog_url>https://blog.jicoman.info/</blog_url>
  <categories>
    <anon>Git</anon>
    <anon>Git</anon>
    <anon>git</anon>
  </categories>
  <description>[toc] Git力が低い僕です。 ブランチ切ってPushしたつもりが、MasterブランチにコミットしてPushしてしまった場合の対処方法をメモとして残しておきます。 Git力低い(2回目)ので、もっと効率の良いやり方があるかと思いますが、コメントなどで指摘していただけると嬉しいです。 3つコミットしてすでにGitHubにPushしてしまったとします。 $ git branch| grep &quot;*&quot; * master $ git log --oneline 96b6e0f 変更C cb5efb9 変更B 1b32926 変更A 3つ前の状態に戻す git reset --hard でHEAD、…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.jicoman.info%2F2017%2F10%2Fgit-reset-master%2F&quot; title=&quot;Masterブランチに誤ってcommitしてpushした場合の対応 - 本日も乙&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>2017-10-25 00:47:13</published>
  <title>Masterブランチに誤ってcommitしてpushした場合の対応</title>
  <type>rich</type>
  <url>https://blog.jicoman.info/2017/10/git-reset-master/</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
