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?

2

2 Answers 2

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

6
1

This worked for me:

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

Ubuntu 14.04 LTS, git version 1.9.1

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 7, 2017 at 12:12
  • This answer is confused about what LANGUAGE does.
    – alexis
    Nov 22, 2018 at 8:07

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .