$ git clone -n https://gitee.com/src-opencloudos-rpms/libgit2.git /var/lib/mock/dist-oc9-build-46769-14592/root/chroot_tmpdir/scmroot/libgit2 Cloning into '/var/lib/mock/dist-oc9-build-46769-14592/root/chroot_tmpdir/scmroot/libgit2'... $ git fetch origin oc9:KOJI_FETCH_HEAD From https://gitee.com/src-opencloudos-rpms/libgit2 * [new branch] oc9 -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at c7aea07 import libgit2-1.4.4-3.tl4