Mac에서 생성된 한글 파일명의 인코딩 방식 차이 때문에 누구나 한두번씩 불편함을 겪게 된다.

이런 불편함을 해결하는 git의 내장 옵션이 있었나보다. 출처 출처

# 파일명의 NFD -> NFC 처리
git config --global core.precomposeunicode true
 
# 경로명의 NFC를 이스케입 없이 표시
git config --global core.quotepath false

Git 공식문서 - precomposeUnicode 옵션 설명

This option is only used by Mac OS implementation of Git. When core.precomposeUnicode=true, Git reverts the unicode decomposition of filenames done by Mac OS. This is useful when sharing a repository between Mac OS and Linux or Windows.

Git 공식문서 - quotepath 옵션 설명

Commands that output paths (e.g. ls-files, diff), will quote “unusual” characters in the pathname by enclosing the pathname in double-quotes and escaping those characters with backslashes in the same way C escapes control characters (e.g. \t for TAB, \n for LF, \\ for backslash) or bytes with values larger than 0x80 (e.g. octal \302\265 for “micro” in UTF-8). If this variable is set to false, bytes higher than 0x80 are not considered “unusual” any more. Double-quotes, backslash and control characters are always escaped regardless of the setting of this variable. A simple space character is not considered “unusual”. Many commands can output pathnames completely verbatim using the -z option. The default value is true.