git config
git config --list
- git 설정 보기
- 각 설정 파일에 중복된 설정이 있으면 순서대로 덮어쓴다.
git config --global --list
git config --list
user.name, user.email
git config --global user.name "test name"
git config --global user.email test@exmaple.com
core.editor (편집기)
- 커밋할 할 때 나 tag 메시지를 편집할 때 사용할 편집기 설정
git config --global core.editor <target>
git config --global core.editor vim
commit.template
- 커밋 메시지 규칙이 있으면 그 규칙에 맞는 템플릿 파일을 만들고 시스템 설정
git config commit.template <target>
git config commit.template ~/.gitmessage.txt
git config --unset commit.template
- log 나 diff 메시지를 출력할 때 페이지를 나누어 보여준다.
git config core.pager less
git config core.pager more
git config core.pager ''