$ git clone -n https://gitee.com/wenyuzifang/git.git /var/lib/mock/dist-an23-build-471822-74118/root/chroot_tmpdir/scmroot/git Cloning into '/var/lib/mock/dist-an23-build-471822-74118/root/chroot_tmpdir/scmroot/git'... $ git fetch origin 3c9b4f4248009f61d1d148874d38fc6a460ea3f3:KOJI_FETCH_HEAD From https://gitee.com/wenyuzifang/git * [new ref] 3c9b4f4248009f61d1d148874d38fc6a460ea3f3 -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at 3c9b4f4 Update code from upstream