There is an open source project odoo, which currently has more than 10 branches (versions), and the entire library is very large when cloned.
I know and tried to clone -b a branch, but I found that this branch is also very large;
We know that when downloading on the web page, select the branch, which is usually the latest version of the branch, and there is no historical version .
Does anyone know what options can be achieved using git clone?
Thank you!
git init a local warehouse
Set upstream’s remote address
git fetch origin/branch1 --depth=1
That’s about it