大约一个月前,我克隆了一个远程git存储库。远程存储库经历了许多更改,现在变得不稳定。现在我需要另一个存储库的副本,版本与我一个月前克隆的版本相同。
我该怎么做?
发布于 2018-03-26 10:40:50
可以简单地使用
git checkout commithash
在这个序列中
git init
git clone `URLTORepository`
cd `into your cloned folder`
git checkout commithash
提交散列如下所示:“45ef55ac20ce2389c9180658fdba35f4a663d204”
https://stackoverflow.com/questions/-100003688
复制相似问题