$ git clone -n https://gitee.com/fundawang/libgit2.git /var/lib/mock/dist-an23-build-184141-60304/root/chroot_tmpdir/scmroot/libgit2 Cloning into '/var/lib/mock/dist-an23-build-184141-60304/root/chroot_tmpdir/scmroot/libgit2'... $ git fetch origin 81b3ae64e3a13952f32ca56cad08070b8520e7fd:KOJI_FETCH_HEAD From https://gitee.com/fundawang/libgit2 * [new ref] 81b3ae64e3a13952f32ca56cad08070b8520e7fd -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at 81b3ae6 1.5.0