指定分支
git clone -b 13.0 https://github.com/odoo/odoo.git
但这样做, 也检出了所有的 git 提交信息,为了保留git ,我们只检出最新的提交信息就可以
git clone -b 13.0 --depth=1 https://github.com/odoo/odoo.git
-b 13.0 指定分支13.0
--depth=1 指定检出最新提交信息
指定分支
git clone -b 13.0 https://github.com/odoo/odoo.git
但这样做, 也检出了所有的 git 提交信息,为了保留git ,我们只检出最新的提交信息就可以
git clone -b 13.0 --depth=1 https://github.com/odoo/odoo.git
-b 13.0 指定分支13.0
--depth=1 指定检出最新提交信息