$ git clone -n https://gitee.com/src-anolis-os/maven2.git /var/lib/mock/dist-an7-build-61215-33878/root/chroot_tmpdir/scmroot/maven2 Cloning into '/var/lib/mock/dist-an7-build-61215-33878/root/chroot_tmpdir/scmroot/maven2'... $ git reset --hard origin/a7 HEAD is now at 7e2e23b import maven2-2.2.1-47.el7.src.rpm