Skip to content

zsh git log 乱码 #14

Open
Open

Description

@zhanzengyu

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

在 ~/.zshrc 追加下面两行

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions