gpt4 book ai didi

macos - 如何在mac中将git从中文改成英文

转载 作者:IT王子 更新时间:2023-10-29 00:49:48 32 4
gpt4 key购买 nike

我记得我是通过port install git-core安装git的。它默认显示中文单词,如下所示:

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

# 位于分支 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")

我在 mac os 上用中文工作,我想知道如何将 git 的语言改回英文。

最佳答案

export LC_ALL=en_US.UTF-8

将其添加到您的 .bashrc 或 .zshrc 文件

关于macos - 如何在mac中将git从中文改成英文,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14189134/

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com