Створіть та застосуйте патчі

Патчі — це інструкції з перезапису, які Git може застосувати до набору файлів.

Щоб створити файли патчів на основі локальних комітів:

  1. Перейдіть до « Tools » > « Git » > « Local Repository ».
  2. Виберіть « Patch » > « Create from Commits ».
  3. У діалоговому вікні виберіть коміти для створення файлів патчів.
  4. Виберіть « OK ».

Файли патчів генеруються в кореневому каталозі локального репозиторію та мають назву за схемою NNNN-Title-of-Commit.patch, де NNNN — це чотиризначне число, що починається з 0000.

Щоб застосувати файл патча, відкритий у вікні « Qt Creator », перейдіть до « Tools » > « Git » > « Local Repository » та виберіть « Patch » > « Apply from Editor ».

Щоб вибрати файл виправлення для застосування з файлової системи, виберіть « Apply from File ».

Щоб застосувати патч із буфера обміну, виберіть « Apply from Clipboard ».

Див. також «Як: Користуватися Git » та «Використання 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.