$ git clone -n https://gitee.com/src-anolis-dde/kscreenlocker.git /var/lib/mock/dist-an23-dde-build-330671-69459/root/chroot_tmpdir/scmroot/kscreenlocker Cloning into '/var/lib/mock/dist-an23-dde-build-330671-69459/root/chroot_tmpdir/scmroot/kscreenlocker'... $ git reset --hard origin/a23 HEAD is now at 30905e2 fix spec version