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?
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?
– gertvdijk
Jul 24 '13 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.
– itsafire
Aug 07 '17 at 12:12
LANG=en_US.UTF-8work for you? – Alvar Jul 16 '13 at 13:31