how to apply a svn patch git

Shell
$ patch -p0 < xxx_parser.patch
$ git diff

Source

Also in Shell: