I'm running the official windows binary of emacs 24.1.1 with magit. When I commit a file, the username and email shown on the log are ripped from my account and machine name, rather than using the values set in either the global git config or the local settings for this repro.

From git bash and dos, I can ask git for user.email and user.name and get the local repro settings.

magit and vc-git's diff mode also seems to be ignoring my autocrlf settings, so this may be an emacs-wide problem, not specific to magit.

C:\Program Files (x86)\Git\cmd is is on emac's exec-path.

How can I either instruct magit to find the correct settings, or tell it manually what the settings are?

有帮助吗?

解决方案

You might want to control that your $HOME is the same from Emacs point of view, and from your shell point of view. Chances are that they're not the same, hence $HOME/.gitconfig is not found in Emacs.

其他提示

you can add a HOME enviroment varibales and specify the dir the same with the .gitconfig dir.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top