23

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
  • 660

2 Answers2

33

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
  • 660
pondohva
  • 551
  • 4
  • 4
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