Create patch and apply patch in SmartGit

ReynierPM picture ReynierPM · May 23, 2014 · Viewed 10.8k times · Source

I have a online repository hosted at Bitbucket but one of the developers has Internet connection problems and most of the time can't connect to the repository. In order to mantain the same code at repository and shared between developers I think in create patch and send him trough email. Since him and I use SmartGit client it's possible to create and apply patch from SmartGit? I read the docs but didn't find any helpful, any advice on this? I don't know if Git Flow feature is the solution

Answer

01F0 picture 01F0 · Jun 10, 2015

This seems to be supported from version 6.5 of SmartGit. Here's the changelog: https://www.syntevo.com/smartgit/changelog-6.5.x.txt (under SmartGit 6.5 preview 1)

The following steps worked fine for me.

Creating a patch:

  1. Open the Log
  2. Pick a branch and right-click on a commit
  3. Select "Format patch..." and save the file

Applying a patch:

  1. Open the Log
  2. Go to "Tools" and then "Apply patch..."
  3. Select the patch

The patch will be applied on the branch that is currently checked out.