git에 구성 파일을로드하려고하는데 파일이 기본 저장 위치 중 하나에 없습니다. 나는 git config --file .gitconfig
( .gitconfig
파일 이 들어있는 올바른 디렉토리에 있었을 때) 시도했지만 표준 도움말 메시지를 표시하여 응답했다. 즉 :
usage: git config [options]
Config file location
--global use global config file
--system use system config file
--local use repository config file
-f, --file <file> use given config file
etc.
답변
아마 당신은하고 싶어 :
$ git config --local include.path "$PWD/.gitconfig"
로컬 .gitconfig
파일 이 포함 됩니다.
답변
이 파일을 전역 구성 파일로 사용하려면 홈 디렉토리에 복사하십시오.
cp .gitconfig ~/
git config
명령을 위해 파일을 설정하는 --get
것은 특정 설정 을 원할 때 입니다.