<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>donbulinux</author_name>
  <author_url>https://blog.hatena.ne.jp/donbulinux/</author_url>
  <blog_title>AR ホームベーカリー</blog_title>
  <blog_url>https://donbulinux.hatenablog.jp/</blog_url>
  <categories>
    <anon>git</anon>
  </categories>
  <description>以下のような構造のディレクトリと .gitignore がある。 / ├ .gitignore └ log ├ csv_import │ └ .gitkeep └ .gitkeep /log/* !/log/.gitkeep ここから csv_import ディレクトリをひな形として登録したいので、 /log/csv_import/.gitkeep をコミットに含める、つまりサブディレクトリ以下の .gitkeep をどうやって登録するのか、というお話。 こうする 以下のように記述することで、 /log/ ディレクトリ以下から再帰的に .gitkeep を見つけて追跡対象として登録してくれる。…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdonbulinux.hatenablog.jp%2Fentry%2F2023%2F04%2F26%2F041644&quot; title=&quot;サブディレクトリの .gitignore と .(git)keep - AR ホームベーカリー&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>2023-04-26 04:16:44</published>
  <title>サブディレクトリの .gitignore と .(git)keep</title>
  <type>rich</type>
  <url>https://donbulinux.hatenablog.jp/entry/2023/04/26/041644</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
