Windows용 Git 사용

Git을 git bash 에서만 사용하도록 구성하고 SSH 인증을 사용하는 경우, Git은 ` HOME ` 환경 변수가 가리키는 디렉터리에서 SSH 키를 찾습니다. 이 변수는 항상 ` git bash` 명령어로 설정됩니다.

그러나 일반적으로 Windows 명령 프롬프트에서는 이 변수가 설정되어 있지 않습니다. Windows 명령 프롬프트에서 Git을 실행하면 설치 디렉터리에서 SSH 키를 찾게 되므로 인증에 실패합니다.

Qt Creator 에서 HOME 환경 변수를 설정할 수 있습니다. Preferences > Version Control > Git 로 이동한 다음, ‘ Set "HOME" environment variable ’를 선택하십시오. Git 실행 파일이 실행될 때 HOME%HOMEDRIVE%%HOMEPATH% 로 설정되면, git bash 를 사용할 때와 마찬가지로 인증이 정상적으로 작동합니다.

버전 관리 환경 설정의 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.