$ git clone -n https://gitee.com/src-anolis-sig/ssar.git /var/lib/mock/dist-an7-extras-build-416319-72499/root/chroot_tmpdir/scmroot/ssar Cloning into '/var/lib/mock/dist-an7-extras-build-416319-72499/root/chroot_tmpdir/scmroot/ssar'... $ git fetch origin a7:KOJI_FETCH_HEAD From https://gitee.com/src-anolis-sig/ssar * [new branch] a7 -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at dc0f382 update to 1.0.5