Archive

Posts Tagged ‘patch’

git – create and apply patch/diff

July 6, 2013 Leave a comment

git diff –no-prefix > temp.patch

patch -p0 < temp.patch
 
git diff > temp.patch
patch -p1 < temp.patch
 
And, don’t ever do it on Windows Powershell. Use it on Git Bash.
Advertisements
Tags: ,