github - Can I git clone the latest version of a certain branch of a library? Just like downloading a certain branch in the browser?
ringa_lee
ringa_lee 2017-05-02 09:32:37
0
1
592

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!

ringa_lee
ringa_lee

ringa_lee

reply all(1)
phpcn_u1582

git init a local warehouse
Set upstream’s remote address
git fetch origin/branch1 --depth=1
That’s about it

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template