패치 만들기 및 적용

패치는 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.