<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kanonji</author_name>
  <author_url>https://blog.hatena.ne.jp/kanonji/</author_url>
  <blog_title>kanonji’s diary</blog_title>
  <blog_url>https://kanonji.hatenadiary.com/</blog_url>
  <categories>
    <anon>git</anon>
  </categories>
  <description>git addを取り消す $ git reset HEAD foo.txt git add で編集内容が index に追加*1されます。 間違えて index に追加した場合に、このコマンドで取り消しができます。 $ git add foo.txt $ git status # On branch master # Changes to be committed: # (use &quot;git reset HEAD &lt;file&gt;...&quot; to unstage) # # modified: foo.txt # $ git reset HEAD foo.txt Unstaged changes aft…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkanonji.hatenadiary.com%2Fentry%2F20101116%2F1289885277&quot; title=&quot;git addの取り消しと、コミット済みのファイルを除外する方法 - kanonji’s diary&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>2010-11-16 14:27:57</published>
  <title>git addの取り消しと、コミット済みのファイルを除外する方法</title>
  <type>rich</type>
  <url>https://kanonji.hatenadiary.com/entry/20101116/1289885277</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
