$ git clone -n https://gitee.com/src-anolis-sig/keentune_target.git /var/lib/mock/dist-an8.4-keentune-build-86965-42084/root/chroot_tmpdir/scmroot/keentune_target Cloning into '/var/lib/mock/dist-an8.4-keentune-build-86965-42084/root/chroot_tmpdir/scmroot/keentune_target'... $ git reset --hard origin/dev-1.2.0-1 HEAD is now at 2171f37 update to version 1.2.0-1