Question: After IntelliJ IDEA Terminal configuration git.bash Chinese garbled

  1. Terminal IDEA replaced Git Bash
    in IDEA, open Settings, bash provided corresponding path
    settings-> Tools-> Terminal-> Shell path : C: \ Program Files \ Git \ bin \ bash.exe

  2. Notes solve garbage problem git commit
    in C: \ Program Files \ Git \ etc \ bash.bashrc end of the line and add the following contents:

    export LANG="zh_CN.UTF-8"
    export LC_ALL="zh_CN.UTF-8"
  3. Restart

    Terminal IDEA reboot or close the current connection session, then New Session connection.

Guess you like

Origin www.cnblogs.com/wen-xin/p/11832488.html