パッチの作成と適用

パッチとは、Git がファイル群に適用する書き換え指示のことです。

ローカルのコミットからパッチファイルを生成するには

  1. Tools >Git >Local Repository に移動します。
  2. Patch >Create from Commits を選択します。
  3. ダイアログでパッチファイルを作成するコミットを選択します。
  4. OK を選択する。

パッチファイルはローカルリポジトリのルートディレクトリに生成され、NNNN -Title-of-Commit.patchというスキームに従います。

Qt Creator で開いているパッチファイルを適用するには、Tools >Git >Local Repository と進み、Patch >Apply from Editor を選択します。

ファイルシステムから適用するパッチファイルを選択するには、Apply from File を選択します。

クリップボードからパッチを適用するには、Apply from Clipboard を選択します。

How To: Use 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.