Skip to content

Instantly share code, notes, and snippets.

@TestItOnlyOnce
Created August 11, 2017 15:20
Show Gist options
  • Save TestItOnlyOnce/3c7e98ca38798b5fe7796d9847430015 to your computer and use it in GitHub Desktop.
Save TestItOnlyOnce/3c7e98ca38798b5fe7796d9847430015 to your computer and use it in GitHub Desktop.
How to apply several git patch files using a batch command file on windows?
@echo off
rem Copy all .patch.txt files to your repo root before applying.
rem You can delete them afterwards or add *.patch.txt to .gitignore.
for %%f in (*.patch.txt) do git am -3 --keep-cr --whitespace=nowarn "%%~f"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment