<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hokaccha</author_name>
  <author_url>https://blog.hatena.ne.jp/hokaccha/</author_url>
  <blog_title>hokaccha memo</blog_title>
  <blog_url>https://hokaccha.hatenablog.com/</blog_url>
  <categories>
    <anon>git</anon>
  </categories>
  <description>$ git --version git version 1.8.3.2 $ touch newfile $ git status -s ?? newfile $ git reset --hard $ git status -s ?? newfileこのようにまだgitに管理されてないファイルはgit reset --hardしても削除されない。これはよい。ただ、次のように、インデックスに追加した後にgit reset --hardするとファイルが消える。 $ git add newfile $ git status -s A newfile $ git reset --hard $ git s…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhokaccha.hatenablog.com%2Fentry%2F20130930%2F1380522753&quot; title=&quot;git reset --hardで新規ファイルの扱い - hokaccha memo&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>2013-09-30 15:32:33</published>
  <title>git reset --hardで新規ファイルの扱い</title>
  <type>rich</type>
  <url>https://hokaccha.hatenablog.com/entry/20130930/1380522753</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
