How do I change the language of Git to English on Linux?

Asked

Viewed 573 times

1

I installed Git on my Ubuntu but it is in Portuguese. How can I change to English language?

2 answers

1

On your terminal, check the return of the command:

echo $LANG

Probably will be:

pt_BR.UTF-8

Change the variable value as follows:

echo "export LANG=en_US.UTF-8" >> ~/.bashrc

And restart it:

source ~/.bashrc
  • put all commands, but did not effect the change, what changed was only pt_BR.UTF-8 to en_US.UTF-8 on my system, but when using git it is still in English, but Valew for trying to help xD!

-3

Change the file ~/.bashrc:

alias git='LANG=en_US git'

Browser other questions tagged

You are not signed in. Login or sign up in order to post.