$ git clone -n https://gitee.com/src-anolis-os/maven-dependency-tree.git /var/lib/mock/dist-an7-build-61254-33891/root/chroot_tmpdir/scmroot/maven-dependency-tree Cloning into '/var/lib/mock/dist-an7-build-61254-33891/root/chroot_tmpdir/scmroot/maven-dependency-tree'... $ git reset --hard origin/a7 HEAD is now at a981c53 import maven-dependency-tree-2.0-7.el7.src.rpm