克隆特定分支
git clone --branch <branch_name> <repository_url>
克隆特定标签
git clone <repository_url>
cd <repository_directory>
git checkout tags/<tag_name>
克隆特定分支并包含所有子模块
git clone --branch <branch_name> --recurse-submodules <repository_url>
克隆特定标签并包含所有子模块
git clone --recurse-submodules <repository_url>
cd <repository_directory>
git checkout tags/<tag_name>
git submodule update --init --recursive