Windows용 Git 사용

git bash 에서만 사용하도록 Git을 구성하고 SSH 권한을 사용하는 경우 Git은 HOME 환경이 가리키는 디렉터리에서 SSH 키를 찾습니다. 변수는 항상 git bash 에 의해 설정됩니다.

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

Qt Creator 에서 HOME 환경 변수를 설정할 수 있습니다. Preferences > Version Control > Git 로 이동한 다음 Set "HOME" environment variable 을 선택합니다. HOME%HOMEDRIVE%%HOMEPATH% 으로 설정되면 Git 실행 파일이 실행되고 권한 부여가 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.