$ git clone -n https://gitee.com/mabofu/dsms.git /var/lib/mock/dist-an8.7-build-272412-64170/root/chroot_tmpdir/scmroot/dsms Cloning into '/var/lib/mock/dist-an8.7-build-272412-64170/root/chroot_tmpdir/scmroot/dsms'... $ git fetch origin d5615d28ada3075f026c40088f39deaf20f9c4e5:KOJI_FETCH_HEAD From https://gitee.com/mabofu/dsms * [new ref] d5615d28ada3075f026c40088f39deaf20f9c4e5 -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at d5615d2 init package