$ git clone -n https://gitee.com/xzyang-anolis/freeimage.git /var/lib/mock/dist-an23-dde-build-313636-67389/root/chroot_tmpdir/scmroot/freeimage Cloning into '/var/lib/mock/dist-an23-dde-build-313636-67389/root/chroot_tmpdir/scmroot/freeimage'... $ git fetch origin a12a41af376213dd93166cf3ff354019ef1c2005:KOJI_FETCH_HEAD From https://gitee.com/xzyang-anolis/freeimage * [new ref] a12a41af376213dd93166cf3ff354019ef1c2005 -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at a12a41a Update