Create and apply patches | Qt Creator Documentation

- Qt Creator Documentation
- Create and apply patches
- Qt Creator 19.0.0

Create VCS repositories for new projects ◦ Git Tools

# Create and apply patches

Patches are rewriting instructions that Git can apply to a set of files.

To generate patch files from local commits:

1. Go to Tools > Git > Local Repository.
2. Select Patch > Create from Commits.
3. Select the commits for patch file creation in the dialog.
4. 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 Using Git.

Create VCS repositories for new projects ◦ Git Tools