$ git clone -n https://gitee.com/opencloudos-stream/check_postgres.git /var/lib/mock/dist-oc9-epol-build-101332-65804/root/chroot_tmpdir/scmroot/check_postgres Cloning into '/var/lib/mock/dist-oc9-epol-build-101332-65804/root/chroot_tmpdir/scmroot/check_postgres'... $ git fetch origin master:KOJI_FETCH_HEAD From https://gitee.com/opencloudos-stream/check_postgres * [new branch] master -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at 334491b update