$ git clone -n https://gitee.com/fundawang/libgit2.git /var/lib/mock/dist-an23-build-286407-64832/root/chroot_tmpdir/scmroot/libgit2 Cloning into '/var/lib/mock/dist-an23-build-286407-64832/root/chroot_tmpdir/scmroot/libgit2'... $ git fetch origin 568da048c0598153dd43409379d226d162c85630:KOJI_FETCH_HEAD From https://gitee.com/fundawang/libgit2 * [new ref] 568da048c0598153dd43409379d226d162c85630 -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at 568da04 1.6.4