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