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?

2

2 Answers

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

This worked for me:

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

Ubuntu 14.04 LTS, git version 1.9.1

2

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like