tags:

views:

79

answers:

2

How my client can apply my patch created by command git diff without git installed? I have tryed to use patch command but it always asks file name to patch.

A: 

Try patch < filename. Then read this.

Idan K
this does not work. I tryed different options.It always say me `File to patch:` and waits for my input
SMiX
@SMiX: So what happens when you type in the filename?
Ether
It applyes patch. But the patch contains many files and I need patch to be applyed automatically.I have found the solution.
SMiX
+3  A: 

git diff --no-prefix > patchfile

and

patch -p0 < patchfile

works fine

SMiX
Or use `git diff > patchfile`, but `patch -p1 < patchfile`
Jakub Narębski