$ git clone -n https://gitee.com/zhoujiajia111/grub2.git /var/lib/mock/dist-an23-build-453983-73610/root/chroot_tmpdir/scmroot/grub2 Cloning into '/var/lib/mock/dist-an23-build-453983-73610/root/chroot_tmpdir/scmroot/grub2'... $ git fetch origin 8dd16bc6c1bb00dfe312a45cab77f7cba8775a03:KOJI_FETCH_HEAD From https://gitee.com/zhoujiajia111/grub2 * [new ref] 8dd16bc6c1bb00dfe312a45cab77f7cba8775a03 -> KOJI_FETCH_HEAD $ git reset --hard KOJI_FETCH_HEAD HEAD is now at 8dd16bc add patch