My ˋgitˋ is in german, it says:
ˋAuf Zweig masterˋ
instead of
On branch master
with git status
.
What's the reason for this?
My ˋgitˋ is in german, it says:
ˋAuf Zweig masterˋ
instead of
On branch master
with git status
.
What's the reason for this?
Sometimes changing the
LANG
environment variable alone is not good enough.You may also need to add
LC_ALL
According to The IEEE and The Open Group - Environment Variables.
It is because the environment variables starting by
LC_*
will be used first by your system beforeLANG
:To change it permanently, you need to paste the code above into your favourite shell configuration file (probably
~/.bashrc
or~/.zshrc
)Then to apply the modification do:
or
Otherwise, just open a new terminal.
In my case, setting
LANG
orLC_ALL
was not enough. I also had aLANGUAGE
environment variable which was set toen_GB:en_US:de
. Despite the ordering, which is presumably an order of preference, it resulted in a German language response fromgit
and other commandline-programmes. When I changed it toen_GB:en_US
,git
and other programmes became English.The reason for this is that your command line language is set to German. So when you do:
you will see:
To change this, do:
assuming your standard shell is bash.
Don't forget:
Probably you locale is german. You can see it by
locale
. Try to change it by:export LANG="en_US.UTF-8"