A patch file is basically a saved diff of one or more files that can then be applied to another working directory, thus recreating the changes in the second working directory. Patches are useful in the following situations:
Creating a PatchTo create a patch of the differences between your local working directory and the latest repository version:
Applying a PatchWhen another developer applies your patch, he or she recreates the changes in the patch in his or her own working directory. The effect is the same as if you had committed your changes and the other developer had updated his or her working directory. You must apply the patch in exactly the same location in the working directory as where the patch was created from. To apply a patch:
|