git config --system
git config --global
git config --local
git config user.name <user_name>
git config user.email <email_address>
git config core.autocrlf<value>
💡 참고
- Windows : CR (\r) + LF (\n) 모두 사용
- Unix or Mac : LF (\n) 만 사용
🚨 주의
서로 다른 OS 에서 함께 Git 으로 작업한다면core.autocrlf = ture사용
core.autocrlf = false: 파일에 적용된 줄바꿈 문자와 상관없이 작업한 환경의 줄바꿈 문자를 적용core.autocrlf = true: 파일에 적용된 줄바꿈 문자를 CRLF 에서 LF 로 변경core.autocrlf = input: Commit 할때만 CRLF 를 LF 로 변경
default Editor 설정
git config core.editor <editor_name>
mastermainmain으로 통일git config init.defaultBranch <branch_name>
git config --l
git config --list
git config --l --show-origin
git config --list --show-origin
git config <key>
git config user.name
git config user.email
git config core.autocrlf
git config core.editor
git config init.defaultBranch