下面是我用来签出特定提交的命令。
git clone git://repo.git/repo123 git checkout <commitID>
我想在一个步骤中完成上面的操作--只使用git clone命令。
我想这样做的原因是,repo123非常庞大。因此,检查我想要的提交将为我节省大量时间。
我知道--depth选项。但在这种情况下,它是没有用的。有人能告诉我怎么做吗?
--depth
https://stackoverflow.com/questions/18525152
相似问题