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