<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tokizuoh</author_name>
  <author_url>https://blog.hatena.ne.jp/tokizuoh/</author_url>
  <blog_title>カルボナーラ街道</blog_title>
  <blog_url>https://tokizuoh.hatenablog.com/</blog_url>
  <categories>
    <anon>Git</anon>
  </categories>
  <description>あたりまえ体操かもしれない。 Untrackedなファイルがある状態で git diff をすると、無が表示される。 $echo 1 &gt; hoge.txt $git status On branch main No commits yet Untracked files: (use &quot;git add &lt;file&gt;...&quot; to include in what will be committed) hoge.txt nothing added to commit but untracked files present (use &quot;git add&quot; to track) $git diff git …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftokizuoh.hatenablog.com%2Fentry%2F2025%2F09%2F08%2F154345&quot; title=&quot;Gitでuntrackedなファイルをgit diffに含めたい時はgit add -Nをする - カルボナーラ街道&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>2025-09-08 15:43:45</published>
  <title>Gitでuntrackedなファイルをgit diffに含めたい時はgit add -Nをする</title>
  <type>rich</type>
  <url>https://tokizuoh.hatenablog.com/entry/2025/09/08/154345</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
