Tower Icon

Patches

Git's "patch" feature allows you to integrate individual patch files into your current HEAD branch. This allows you to integrate only certain changes in a very granular way - instead of having to merge in complete branches.

Create Patch

To create a patch you can do one of the following:

In any of the "Commits" views, select "Save Patch as File..." from a commit item's contextual menu.

  • Commits list

  • Commits recent

  • Commit details
    In "Commits List" view, click on the clipboard icon next to the file name. This will copy the diff for that indidual file to the clipboard. You can then copy the patch into an editor and save as patch file.

Apply Patch

To apply a patch you can do one of the following:

  • In the "Status" view, select "Apply Patch..." from the HEAD branch's contextual menu.

  • Drag and drop the patch file (file name ending ".patch" or ".diff") on Tower's dock icon.


Related Topics

Integrating changes via merge and rebase

Integrating individual commits via "cherry-picking"

Undoing local changes