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?
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
LANG
vs LANGUAGE
vs LC_ALL
: Why is overriding the LANG environment variable not changing the language for me?
Jul 24, 2013 at 23:22
This worked for me:
echo "export LANGUAGE='en_US.UTF-8 git'" >> ~/.bashrc
Ubuntu 14.04 LTS, git version 1.9.1
git
is not allowed there. Second: You are setting the language for your whole bash session. It will affect other programs as well.
LANG=en_US.UTF-8
work for you?