Git Branches When Shallow Cloning

12 · Blog Feld · April 28, 2026, 1:13 a.m.
Summary
This post explains how to access another branch in a shallow git clone using the command `git fetch --depth 1 origin branch:branch`. It's a brief tip for developers who may find shallow clones confusing.