$ git clone -n https://gitee.com/src-anolis-sig/keentuned.git /var/lib/mock/dist-an8.9-build-349237-70430/root/chroot_tmpdir/scmroot/keentuned Cloning into '/var/lib/mock/dist-an8.9-build-349237-70430/root/chroot_tmpdir/scmroot/keentuned'... $ git fetch origin a8:KOJI_FETCH_HEAD From https://gitee.com/src-anolis-sig/keentuned * [new branch] a8 -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at 5ade8ad remove old version tar