$ git clone -n https://gitee.com/xzyang-anolis8/go-lib.git /var/lib/mock/dist-an23-dde-build-330003-68958/root/chroot_tmpdir/scmroot/go-lib Cloning into '/var/lib/mock/dist-an23-dde-build-330003-68958/root/chroot_tmpdir/scmroot/go-lib'... $ git fetch origin a3f7b28d77fe95dc5d04e3f0500250be9bab4ffd:KOJI_FETCH_HEAD From https://gitee.com/xzyang-anolis8/go-lib * [new ref] a3f7b28d77fe95dc5d04e3f0500250be9bab4ffd -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at a3f7b28 fix spec version