$ git clone -n https://gitee.com/src-anolis-os/autofs.git /var/lib/mock/dist-an23.4-build-532196-80674/root/chroot_tmpdir/scmroot/autofs Cloning into '/var/lib/mock/dist-an23.4-build-532196-80674/root/chroot_tmpdir/scmroot/autofs'... $ git fetch origin a23:KOJI_FETCH_HEAD From https://gitee.com/src-anolis-os/autofs * [new branch] a23 -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at 30f8605 Init upstream from 5.1.9