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
Tty_Flip_Buffer_Push() Sends Data Back to Itself
How to Install Visual Studio 2015 in Ubuntu
How to Cd into a Directory Using Perl
Provide Password Using Shell Script
Broadcasting Udp Packet to 255.255.255.255
How to Install a Node.Js Server at Chat.Mydomain.Com on a Hostgator Vps Hosting
How to Search for Invisible Control Characters
Mono Take Mscorlib.Dll 2.0 Instead of 4.0
Start X86_64 Code on X86 (32Bit) Linux, Running on X86_64 Cpu
Clear Screen in a Linux Terminal Using Assembly
Can't Source Script in a Current Directory
What Is the Use of Gfp_User Flag in Kmalloc
Difference Between Kernel, Kernel-Thread and User-Thread