$ git clone -n https://gitee.com/happy_orange/libssh2_1.git /var/lib/mock/dist-an23-build-106525-45627/root/chroot_tmpdir/scmroot/libssh2_1 Cloning into '/var/lib/mock/dist-an23-build-106525-45627/root/chroot_tmpdir/scmroot/libssh2_1'... $ git reset --hard 3df9971a6be37b583e3de47c31e99fd084a115b1 HEAD is now at 3df9971 init pacakge from upstream