How Did I Fix That?

A log of solutions to problems I've encountered. No warranties.

Checking out a single branch from a GitHub repo

26 April 2021

If we need only a single code branch, e.g., "experimental", use:

git clone --single-branch --branch experimental https://github.com/[name]/[repo].git localrepo

Tags: software, git