GIT常用命令#

克隆指定分支

git clone -b <branch_name> --depth 1 https://github.com/containerd/containerd.git

克隆指定TAG

git clone -b <tag_name> --depth 1 https://github.com/containerd/containerd.git

检出分支

git checkout tags/<tag_name>

检出TAG并创建分支

git checkout tags/<tag_name> -b <branch_name>



本站所有作品均采用知识共享署名-非商业性使用-禁止演绎 3.0 中国大陆许可协议进行许可。