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.
Copyright © The Qt Company Ltd. and other contributors. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.