如何在 git 中递归克隆特定标签?我知道下面的命令列表可以做到。但是有更短的方法吗?
$ git clone https://github.com/user/repo.git
$ cd repo
$ git checkout tags/<tag-name>
$ git submodule update --init --recursive
最佳答案
在一行中递归克隆一个标签:
git clone --recursive --branch <tag-name> https://github.com/user/repo.git
关于git - 如何递归克隆git中的特定标签,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44767740/