분류
Git
git bash에서 한글이 깨질 경우
본문
-, git bash에서 한글 입력을 하면 글자가 사라질 때
1. 홈 디렉토리로 이동하여 git bash열기 (C:\Users\{사용자이름})
2. .inputrc 파일 생성 (앞에 .으로 시작)
touch .inputrc (또는 vi .inputrc)
3. 아래 내용을 입력하고 저장
set output-meta on
set convert-meta off
-, git status / git commit -m 할 때 한글 파일명 깨짐 현상
git config --global core.quotepath false
-, git log시 한글 깨짐이 발생할 때
git config --global i18n.commitEncoding utf-8
git config --global i18n.logOutputEncoding utf-8
-, git bash에서 ls명령어에서 한글 파일명 깨질 때
1. 사용자 홈(C:\Users\{사용자이름})으로 이동하여 git bash열기
2. touch .bashrc (또는 vi .bashrc)
alias ls='ls --show-control-chars'
입력하고 저장
- 이전글github 처음 연결할 때 'non-fast-forward' 문제 해결방법 19.03.18
- 다음글Node 버전 업그레이드 19.03.14