$ git clone -n https://gitee.com/renping000/logrotate.git /var/lib/mock/dist-an8.6-build-156207-58346/root/chroot_tmpdir/scmroot/logrotate Cloning into '/var/lib/mock/dist-an8.6-build-156207-58346/root/chroot_tmpdir/scmroot/logrotate'... $ git reset --hard a2a41d40d16d366a3d6aebdf1f6d922e85194b9b HEAD is now at a2a41d4 update to logrotate-3.8.6-19.el7.src.rpm