Last Updated: February 25, 2016
·
408
· toshimaru

Create patch from git diff and apply it with patch

$ git diff --no-prefix HEAD~ > thisis.patch
$ patch --dry-run -p0 < thisis.patch
$ patch -p0 < thisis.patch

via 普通のpatchコマンドで取り込めるdiffファイルをgitで作成する