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
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