$ git clone -n https://gitee.com/mgb01105731/freeimage.git /var/lib/mock/dist-an23-dde-build-426864-73001/root/chroot_tmpdir/scmroot/freeimage Cloning into '/var/lib/mock/dist-an23-dde-build-426864-73001/root/chroot_tmpdir/scmroot/freeimage'... $ git fetch origin 20547f41251f6caeea8fc4a660600af27ed00705:KOJI_FETCH_HEAD From https://gitee.com/mgb01105731/freeimage * [new ref] 20547f41251f6caeea8fc4a660600af27ed00705 -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at 20547f4 rebuild