$ git clone -n https://gitee.com/xzyang-anolis/spdlog.git /var/lib/mock/dist-an23-dde-build-303752-66081/root/chroot_tmpdir/scmroot/spdlog Cloning into '/var/lib/mock/dist-an23-dde-build-303752-66081/root/chroot_tmpdir/scmroot/spdlog'... $ git fetch origin 0e230bdc0730b5d579754ff8f38055058e30acd4:KOJI_FETCH_HEAD From https://gitee.com/xzyang-anolis/spdlog * [new ref] 0e230bdc0730b5d579754ff8f38055058e30acd4 -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at 0e230bd pkg init