How to Create a Patch file on Mac OS X

ios, macos

Solution

First check in the Xcode Downloads whether the Command Line Tools are downloaded or not. if not first download that and then follow the below procedure

In Terminal go to the directory where we need that Patch File and execute the Command svn diff > somename.patch then you will get a patch file in that directory

Problem

In my iOS Application I want to create a patch file for the modified files to send it to Review Board.How can i generate a patch file in Mac OS by using Terminal

Original source