Skip to content

Instantly share code, notes, and snippets.

@Mukundhan-I2I
Forked from zeuxisoo/gist:980174
Created September 20, 2019 08:42
Show Gist options
  • Save Mukundhan-I2I/3179fa725a9d49a4bac68a7c9e3a8c3d to your computer and use it in GitHub Desktop.
Save Mukundhan-I2I/3179fa725a9d49a4bac68a7c9e3a8c3d to your computer and use it in GitHub Desktop.
How to use git diff to patch file

Create patch file

git diff --no-prefix > [path file name]

Apply path file

patch -p0 < [path file name]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment