The solution for garbled file names in git diff output

Kei Sugiyasu
Feb 1, 2022

--

Git diff shows the garbled file names when they include non ascii characters. You can resolve it by modifying the git config.

git config --global core.pager "LESSCHARSET=utf-8 less"
git config --global core.quotepath false

Done!

--

--

Kei Sugiyasu
Kei Sugiyasu

Written by Kei Sugiyasu

0 Followers

Full-stack engineer

No responses yet