Checking out a single branch from a GitHub repo

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