$ git clone -n https://gitee.com/Alihq/logrotate.git /var/lib/mock/dist-an8.6-build-181056-59657/root/chroot_tmpdir/scmroot/logrotate Cloning into '/var/lib/mock/dist-an8.6-build-181056-59657/root/chroot_tmpdir/scmroot/logrotate'... $ git reset --hard f9fef4c32e70668b446bfeea8b77c7921ad1f5dc HEAD is now at f9fef4c update to 3.21.0