$ git clone -n https://gitee.com/src-opencloudos-rpms/postgresql-jdbc /var/lib/mock/dist-oc8-build-31826-9257/root/chroot_tmpdir/scmroot/postgresql-jdbc Cloning into '/var/lib/mock/dist-oc8-build-31826-9257/root/chroot_tmpdir/scmroot/postgresql-jdbc'... $ git reset --hard origin/oc8 HEAD is now at 2e8adb5 import postgresql-jdbc-42.2.14-1.oc8