$ git clone -n https://gitee.com/jinzihao/sample.git /var/lib/mock/dist-an23-build-595106-102111/root/chroot_tmpdir/scmroot/sample Cloning into '/var/lib/mock/dist-an23-build-595106-102111/root/chroot_tmpdir/scmroot/sample'... $ git fetch origin master:KOJI_FETCH_HEAD From https://gitee.com/jinzihao/sample * [new branch] master -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at 9c12357 Release 28