윈도우 git 에서 한글 파일이 깨져 나올 때 해결 방법
- 프로그래밍/Git
- 2019. 7. 21.
1
|
$ git config core.quotepath false
|
cs |
git을 한번 써보기 위해서 테스트 하던 중
특정 폴더에서 git init명령어로 초기화 한다음 한글로 "이곳은 깃을 위한 곳입니다.txt"파일 만들고 상태를 한번 봤더니 다음과 같이 나왔다.
1
2
3
4
5
6
7
8
9
10
11
|
On branch master
No commits yet
Untracked files:
(use "git add <file>..." to include in what will be committed)
"\354\235\264\352\263\263\354\235\200 \352\271\203\354\235\204 \354\234\204\355\225\234
\352\263\263\354\236\205\353\213\210\353\213\244.txt"
nothing added to commit but untracked files present (use "git add" to track)
|
cs |
한글 파일명이 다 깨져서 나오는 것이다. 한참을 헤매다 다음과 같은 방법을 찾았다.
1
|
$ git config core.quotepath false
|
cs |
위의 명령어를 치고 난 다음 git status를 하니 한글명이 간단하게 나온다.
1
2
3
4
5
6
7
8
9
10
|
On branch master
No commits yet
Untracked files:
(use "git add <file>..." to include in what will be committed)
이곳은 깃을 위한 곳입니다.txt
nothing added to commit but untracked files present (use "git add" to track)
|
cs |
매번 콘솔창을 입력할 때마다 해줄 필요는 없는 것 같고 한번만 저렇게 설정해 주면 한글이 잘 보이는 듯하다. 참고하시길