git apply --stat patch_name.patch
git apply --check patch_name.patch
git apply patch_name.patch
Stage all your changes and run the command below:
git diff --cached > patch_name.patch
git diff --no-index <file_a> <file_b> > diff.patch
git apply --stat patch_name.patch
git apply --check patch_name.patch
git apply patch_name.patch
Stage all your changes and run the command below:
git diff --cached > patch_name.patch
git diff --no-index <file_a> <file_b> > diff.patch