Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change git from Chinese to English in mac

Tags:

git

bash

macos

I remember I install git through port install git-core. And it show Chinese word as default like the followings:

# 位于分支 master
# 您的分支领先 'origin/master' 共 2 个提交。
#
nothing to commit, working directory clean

and

# 位于分支 master
# 您的分支领先 'origin/master' 共 2 个提交。
#
# 尚未暂存以备提交的变更:
#   (使用 "git add <file>..." 更新要提交的内容)
#   (使用 "git checkout -- <file>..." 丢弃工作区的改动)
#
#   修改:      2.txt
#
no changes added to commit (use "git add" and/or "git commit -a")

I work on mac os with Chinese language, and I want to know how can just change git's language back to English.

like image 681
pktangyue Avatar asked Jan 07 '13 02:01

pktangyue


People also ask

What is git command on Mac?

Git is a version control system that allows developers to track a project and actively contribute without interfering in each other's work. It supports collaboration within a project and helps prevent miscommunication or code clashing between team members.

How do I switch to Git bash on Mac?

Go to Programs > Git and select Git Bash . We'll refer to both Mac's Terminal and Window's Git Bash as just Bash.

Can I use git bash on Mac?

You can run Git Bash on Mac, Linux Debian, Linux Fedora, and Windows.


1 Answers

export LC_ALL=en_US.UTF-8

Add it to your .bashrc or .zshrc file

like image 190
freestyler Avatar answered Nov 15 '22 19:11

freestyler