<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kiririmode</author_name>
  <author_url>https://blog.hatena.ne.jp/kiririmode/</author_url>
  <blog_title>理系学生日記</blog_title>
  <blog_url>https://kiririmode.hatenablog.jp/</blog_url>
  <categories>
    <anon>tips</anon>
    <anon>technology</anon>
    <anon>git</anon>
  </categories>
  <description>VCS を使ったときのメリットは多々ありますが、そのうちの一つは、いつでも修正内容をもとに戻せることだと思います。 ローカルで修正した内容をもとに戻したい git checkout git restore 直前の commit の内容を変更したい commit を取り消したい git reset --hard を取り消したい push したコミットを変更したい 参考文献 ローカルで修正した内容をもとに戻したい $ git checkout -- &lt;pathspec&gt;…​ あるいは、 $ git restore &lt;pathspec&gt;…​ によって、指定したファイル filename が修正前の状…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkiririmode.hatenablog.jp%2Fentry%2F20191026%2F1572076387&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>2019-10-26 16:53:07</published>
  <title>Gitでの各種操作の取り消し・修正方法</title>
  <type>rich</type>
  <url>https://kiririmode.hatenablog.jp/entry/20191026/1572076387</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
