$ git clone -n https://gitee.com/src-anolis-nde/libkscreen-qt5.git /var/lib/mock/dist-an8.9-nde-build-351824-70918/root/chroot_tmpdir/scmroot/libkscreen-qt5 Cloning into '/var/lib/mock/dist-an8.9-nde-build-351824-70918/root/chroot_tmpdir/scmroot/libkscreen-qt5'... $ git reset --hard origin/a8 HEAD is now at 8585506 create branch