$ git clone -n https://gitee.com/opencloudos-stream/perl-GD-SecurityImage.git /var/lib/mock/dist-oc9-epol-build-83901-57257/root/chroot_tmpdir/scmroot/perl-GD-SecurityImage Cloning into '/var/lib/mock/dist-oc9-epol-build-83901-57257/root/chroot_tmpdir/scmroot/perl-GD-SecurityImage'... $ git fetch origin master:KOJI_FETCH_HEAD From https://gitee.com/opencloudos-stream/perl-GD-SecurityImage * [new branch] master -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at 24e907c package init