Create and apply patches
Patches are rewriting instructions that Git can apply to a set of files.
To generate patch files from local commits:
- Go to Tools > Git > Local Repository.
- Select Patch > Create from Commits.
- Select the commits for patch file creation in the dialog.
- Select OK.
The patch files are generated in the root directory of the local repository and follow the scheme NNNN-Title-of-Commit.patch, where NNNN is a four digit number starting with 0000.
To apply a patch file that is open in Qt Creator, go to Tools > Git > Local Repository and select Patch > Apply from Editor.
To select the patch file to apply from the file system, select Apply from File.
To apply a patch from the clipboard, select Apply from Clipboard.
See also How To: Use Git and Git.