How to change the language of my git?

Viewed 21070

My ˋgitˋ is in german, it says:

ˋAuf Zweig masterˋ

instead of

On branch master

with git status.

What's the reason for this?

5 Answers

In my case, setting LANG or LC_ALL was not enough. I also had a LANGUAGE environment variable which was set to en_GB:en_US:de. Despite the ordering, which is presumably an order of preference, it resulted in a German language response from git and other commandline-programmes. When I changed it to en_GB:en_US, git and other programmes became English.

As explain in @Tom comment, it is possible to add alias. In my case, I add in my Ubuntu ~/.bash_aliases

alias giten='LANGUAGE=en_GB:en_Us git'

so if I use git, it is in my language, if I use giten, it is in english

NOTA: by this way, the auto-completion is lost

Related