How can my client apply patch created by git diff without git installed?
I have tried to use patch command but it always asks file name to patch.
How can my client apply patch created by git diff without git installed? I
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
and
work but as many people noticed in comments and other answers patch does not understand adds, deletes and renames. There is no option but
git apply patchfileif you need handle file adds, deletes and renames.EDIT December 2015
Latest versions of
patchcommand (2.7, released in September 2012) support most features of the “diff –git” format, including renames and copies, permission changes, and symlink diffs (but not yet binary diffs) (release announcement).So provided one uses current/latest version of
patchthere is no need to usegitto be able to apply its diff as a patch.