Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zsh git log 乱码 #14

Open
zhanzengyu opened this issue May 25, 2023 · 0 comments
Open

zsh git log 乱码 #14

zhanzengyu opened this issue May 25, 2023 · 0 comments

Comments

@zhanzengyu
Copy link
Owner

该方案是解决使用普通命令,比如 ls 显示中文文件夹没问题,但是 git log 查看 commit 信息中文乱码问题。

~/.zshrc 追加下面两行

export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8

然后执行 source ~/.zshrc 让配置生效即可

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant