$ git clone -n https://gitee.com/src-anolis-os/maven-enforcer.git /var/lib/mock/dist-an7-build-61285-33897/root/chroot_tmpdir/scmroot/maven-enforcer Cloning into '/var/lib/mock/dist-an7-build-61285-33897/root/chroot_tmpdir/scmroot/maven-enforcer'... $ git reset --hard origin/a7 HEAD is now at 7cc440a import maven-enforcer-1.2-8.el7.src.rpm