Ubuntu – Change git’s language to English without changing the locale

gitlanguage

My locale is German. LANG=de_DE.UTF-8. I would like to keep it.

Is it possible to change git's language to English without changing the locale?

Best Answer

You can add alias to you .bashrc or .bash_profile

alias git='LANG=en_US.UTF-8 git'

If LANG doesn't work, try LC_ALL or LANGUAGE

Related Question