$ git clone -n https://gitee.com/src-anolis-os/tomcat.git /var/lib/mock/dist-an23-build-338911-69766/root/chroot_tmpdir/scmroot/tomcat Cloning into '/var/lib/mock/dist-an23-build-338911-69766/root/chroot_tmpdir/scmroot/tomcat'... $ git fetch origin a23:KOJI_FETCH_HEAD From https://gitee.com/src-anolis-os/tomcat * [new branch] a23 -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at ec8e1c0 9.0.84