<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>murank</author_name>
  <author_url>https://blog.hatena.ne.jp/murank/</author_url>
  <blog_title>murankの日記</blog_title>
  <blog_url>https://murank.hatenadiary.org/</blog_url>
  <categories>
    <anon>Git</anon>
  </categories>
  <description>ファイルの変更を取り消そうと思って $ git reset --hard fileとしたら fatal: Cannot do hard reset with paths.と怒られた。 $ git reset --hard HEAD fileとか $ git reset --hard HEAD -- fileとか試してもやっぱり怒られる。 じゃあどうすればファイルの変更を取り消せるのかというと $ git checkout fileとすれば良いみたい。 なんで reset では取り消せないのか調べてみたところ、 git reset [-q] [] [--] … git reset [--patc…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmurank.hatenadiary.org%2Fentry%2F20110515%2F1305466861&quot; title=&quot; git reset --hard でファイルの変更は取り消せない - murankの日記&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>2011-05-15 22:41:01</published>
  <title> git reset --hard でファイルの変更は取り消せない</title>
  <type>rich</type>
  <url>https://murank.hatenadiary.org/entry/20110515/1305466861</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
