Git命令行如何配置为英文
发布于
新换了电脑,通过brew安装的git,在命令行使用的时候却是中文的,对于习惯了英文版的人来说是很别扭的。
所以在网上找了解决办法,如下:
在.bash_profile文件中加入:
alias git='LANG=en_GB git'
如果使用的是zsh,那么在.zshrc中加入:
alias git='LANG=en_GB git'
然后执行:source .bash_profile 或 source .bash_profile
浏览(402)
