<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>TIL on Writing Developer</title>
    <link>https://writingdeveloper.com/tags/til/</link>
    <description>Recent content in TIL on Writing Developer</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
    <lastBuildDate>Mon, 29 Jun 2026 07:00:00 +0200</lastBuildDate><atom:link href="https://writingdeveloper.com/tags/til/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Git clone supports a --sparse option</title>
      <link>https://writingdeveloper.com/posts/git-clone-supports-sparse-option/</link>
      <pubDate>Mon, 29 Jun 2026 07:00:00 +0200</pubDate>
      
      <guid>https://writingdeveloper.com/posts/git-clone-supports-sparse-option/</guid>
      
      
      <category>til</category>
      
      
      
      <description>&lt;p&gt;I was deploying one of my projects on my home server and I only needed the &lt;code&gt;docker-compose.yml&lt;/code&gt; located at the top-level of the repo, not the full code. My first solution was to copy-paste it, but then I updated the file and forgot to sync it, and it bothered me.&lt;/p&gt;
&lt;p&gt;Surprisingly, I found out that &lt;code&gt;git clone&lt;/code&gt; supports a &lt;a href=&#34;https://git-scm.com/docs/git-clone#Documentation/git-clone.txt---sparse&#34;&gt;sparse option&lt;/a&gt; that by default only checks out the top-level files! To also limit what&amp;rsquo;s downloaded, you can partial clone the repo with the option &lt;code&gt;--filter=blob:none&lt;/code&gt;.&lt;/p&gt;</description>
      
    </item>
    
  </channel>
</rss> 