Splits the patch file into parts 1) Get this : git clone https://github.com/progman/patch_spliter.git 2) Make this: git submodule update --init && make x64 && ./test.sh 3) Enjoy! Example: diff -ud a b > a-b.patch patch_spliter a-b.patch Example: git diff --minimal master dev > master-dev.patch patch_spliter -p master-dev.patch