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