$ git clone -n https://gitee.com/wency_cn/git.git /var/lib/mock/dist-an23-build-494191-74584/root/chroot_tmpdir/scmroot/git Cloning into '/var/lib/mock/dist-an23-build-494191-74584/root/chroot_tmpdir/scmroot/git'... $ git fetch origin a5bceca704e66dd5bec8bc00bdb1915edfadf171:KOJI_FETCH_HEAD From https://gitee.com/wency_cn/git * [new ref] a5bceca704e66dd5bec8bc00bdb1915edfadf171 -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at a5bceca Update code from upstream