How to Change the Language of My Git

How does one change the language of the command line interface of Git?

Add these lines to your ~/.bashrc, ~/.bash_profile or ~/.zprofile to force git to display all messages in English:

# Set Git language to English
#alias git='LANG=en_US git'
alias git='LANG=en_GB git'

The alias needs to override LC_ALL on some systems, when the environment variable LC_ALL is set, which has precedence over LANG. See the UNIX Specification - Environment Variables for further explanation.

# Set Git language to English
#alias git='LC_ALL=en_US git'
alias git='LC_ALL=en_GB git'

In case you added these lines to ~/.bashrc the alias will be defined when a new interactive shell gets started. In case you added it to ~/.bash_profile the alias will be applied when logging in.

How to change the language of my git?

Probably you locale is german. You can see it by locale. Try to change it by: export LANG="en_US.UTF-8"

temporarily change the language of git

You can actually prefix any command within a Shell with any variable setting, that would apply only for this command, whether it's git or any other else. Simply type it then separate it from your command with a blank:

$ LANG=fr_FR sh -c 'echo $LANG'
fr_FR
$ echo $LANG
en_us.UTF-8

You probably want to use C, however, to be sure to use the default language for the command you run:

$ LANG=C git

Keep in mind, though, that the chosen language may not be available if it's not have been compiled in. Regular english, however, should almost always be there as it's in general the one the software's strings are written in.

How to change git's language in IntelliJ's built-in terminal?

I got the exact same issue after upgrade git using home-brew from 2.18 to 2.19, I am using IntelliJ 2018.2.

Terminal comes with OS X is working fine => git status showing english

Terminal embedded with IntelliJ is not => git status showing Chinese

Followed https://apple.stackexchange.com/questions/337244 and deleted other preferred languages leaving only English (U.S) seems solved the problem.

The issue looks like IntelliJ is not passing down the LC_LANG correctly.

How to change the git command-line language to Dutch?

Git doesn't appear to have a Dutch translation, so it falls back to English.

How can I change the language of a repository on GitHub?

As VonC mentioned in the comments, you can put your libraries under "vendors" or "thirdparty" and the files won't be analysed by linguist, the tool GitHub uses to analyse the language in your code.

# Vendored dependencies
- third[-_]?party/
- 3rd[-_]?party/
- vendors?/
- extern(al)?/

Later, they added more folder names.

Git GUI: how to change the locale

Just set the environment variable LANG to the value en_US.



Related Topics



Leave a reply



Submit