<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>tutorial &amp;mdash; binarycat</title>
    <link>https://paper.wf/binarycat/tag:tutorial</link>
    <description>blog about programming and general tech stuff</description>
    <pubDate>Mon, 11 May 2026 15:31:20 +0000</pubDate>
    <item>
      <title>git: How to fetch a remote branch</title>
      <link>https://paper.wf/binarycat/git-how-to-fetch-a-remote-branch</link>
      <description>&lt;![CDATA[Yet Another Guide because existing ones don&#39;t work with shallow clones.&#xA;!--more--&#xA;&#xA;To fetch a specific remote branch and associate it with a local branch, use&#xA;git fetch REMOTENAME REMOTEBRANCH:LOCAL_BRANCH.&#xA;&#xA;This should work with all repos, including shallow repos.&#xA;&#xA;-----&#xA;&#xA;#git #tutorial&#xA;&#xA;--------&#xD;&#xA;&#xD;&#xA;You can follow this blog via its RSS feed or by searching for @binarycat@paper.wf on your Mastodon/ActivityPub instance.]]&gt;</description>
      <content:encoded><![CDATA[<p>Yet Another Guide because existing ones don&#39;t work with shallow clones.
</p>

<p>To fetch a specific remote branch and associate it with a local branch, use
<code>git fetch REMOTE_NAME REMOTE_BRANCH:LOCAL_BRANCH</code>.</p>

<p>This should work with all repos, including shallow repos.</p>

<hr>

<p><a href="/binarycat/tag:git" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">git</span></a> <a href="/binarycat/tag:tutorial" class="hashtag" rel="nofollow"><span>#</span><span class="p-category">tutorial</span></a></p>

<hr>

<p>You can follow this blog <a href="https://paper.wf/binarycat/feed/" rel="nofollow">via its RSS feed</a> or by searching for <a href="https://paper.wf/@/binarycat@paper.wf" class="u-url mention" rel="nofollow">@<span>binarycat@paper.wf</span></a> on your Mastodon/ActivityPub instance.</p>
]]></content:encoded>
      <guid>https://paper.wf/binarycat/git-how-to-fetch-a-remote-branch</guid>
      <pubDate>Tue, 27 May 2025 21:00:54 +0000</pubDate>
    </item>
  </channel>
</rss>