$ git clone -n https://gitee.com/src-anolis-os/swtpm.git /var/lib/mock/dist-an23.3-build-424539-72934/root/chroot_tmpdir/scmroot/swtpm Cloning into '/var/lib/mock/dist-an23.3-build-424539-72934/root/chroot_tmpdir/scmroot/swtpm'... $ git fetch origin a23:KOJI_FETCH_HEAD From https://gitee.com/src-anolis-os/swtpm * [new branch] a23 -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at ae3e1b6 update to 0.9.0