$ git clone -n https://gitee.com/gaohongmei/logrotate.git /var/lib/mock/dist-an23-build-222019-62164/root/chroot_tmpdir/scmroot/logrotate Cloning into '/var/lib/mock/dist-an23-build-222019-62164/root/chroot_tmpdir/scmroot/logrotate'... $ git reset --hard f9fef4c32e70668b446bfeea8b77c7921ad1f5dc HEAD is now at f9fef4c update to 3.21.0