<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>thinca</author_name>
  <author_url>https://blog.hatena.ne.jp/thinca/</author_url>
  <blog_title>永遠に未完成</blog_title>
  <blog_url>https://thinca.hatenablog.com/</blog_url>
  <categories>
    <anon>git</anon>
  </categories>
  <description>昨日、git reset --hard HEAD してしまって大変なことになった話を書いた。私は普段これを cancel と言う名前に alias して使っている。 [alias] # 中略 cancel = reset --hard HEAD しかし前回のようなことがまたあってはたまらない。人間はミスするものだ。 alias があって実行しやすいのが問題なのだろうか? いや、割とよくする操作*1だし、alias しなくても使うだろう。 てことで、cancel が安全になるようにしてみた。 [alias] # 中略 cancel = !git commit -a -m 'Temporary c…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fthinca.hatenablog.com%2Fentry%2F20120924%2F1348491052&quot; title=&quot; git reset --hard HEAD を安全にした - 永遠に未完成&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>2012-09-24 21:50:52</published>
  <title> git reset --hard HEAD を安全にした</title>
  <type>rich</type>
  <url>https://thinca.hatenablog.com/entry/20120924/1348491052</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
