Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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?

share|improve this question
    
Why dosn't the line LANG=en_US.UTF-8 work for you? –  Alvar Jul 16 '13 at 13:31
2  
This is also discussed here stackoverflow.com/questions/10633564/… –  Keith Smiley Jul 16 '13 at 14:43

2 Answers 2

up vote 4 down vote accepted

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

share|improve this answer
    
run source .bashrc in command line –  pondohva Jul 16 '13 at 13:56
    
@sergej Does the LANG=en_US.UTF-8 git command work for you? –  Lucio Jul 16 '13 at 14:30
    
So it doesn't work. Before create an alias, you need to make this command work. Do you have the English language installed? –  Lucio Jul 16 '13 at 14:58
    
try LC_ALL instead LANG –  pondohva Jul 16 '13 at 17:33
    
For the discussion on 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

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.