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