【发布时间】:2012-09-07 14:46:45
【问题描述】:
我正在使用 magit 运行 emacs 24.1.1 的官方 windows 二进制文件。当我提交一个文件时,日志中显示的用户名和电子邮件是从我的帐户和机器名称中提取的,而不是使用在全局 git config 或此 repro 的本地设置中设置的值。
通过 git bash 和 dos,我可以向 git 询问 user.email 和 user.name 并获取本地重现设置。
magit 和 vc-git 的 diff 模式似乎也忽略了我的 autocrlf 设置,所以这可能是一个 emacs 范围的问题,而不是特定于 magit。
C:\Program Files (x86)\Git\cmd 在 emac 的 exec-path 上。
如何指示 magit 找到正确的设置,或者手动告诉它设置是什么?
【问题讨论】: