21

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?

sergej
  • 640

2 Answers2

30

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

sergej
  • 640
pondohva
  • 521
1

This worked for me:

echo "export LANGUAGE='en_US.UTF-8 git'" >> ~/.bashrc

Ubuntu 14.04 LTS, git version 1.9.1

DmitryDzz
  • 143
  • 2
  • 3
    This solution is wrong. First of all: The value for LANGUAGE is invalid. git is not allowed there. Second: You are setting the language for your whole bash session. It will affect other programs as well. – itsafire Aug 07 '17 at 12:12
  • This answer is confused about what LANGUAGE does. – alexis Nov 22 '18 at 08:07