为什么emc中的vc-git和magit忽略了我的git配置设置? [英] why is vc-git and magit in emacs ignoring my git config settings?

查看:217
本文介绍了为什么emc中的vc-git和magit忽略了我的git配置设置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在运行emacs 24.1.1的官方Windows二进制文件。当我提交文件时,日志中显示的用户名和电子邮件将从我的帐户和计算机名称中删除,而不是使用全局git配置中设置的值或本机设置。



从git bash和dos,我可以请求git的user.email和user.name并获取本地重设置。



magit和vc-git的diff模式似乎也忽略了我的自动设置,所以这可能是一个emacs范围内的问题,而不是magit。

C:\程序文件(x86)\Git\cmd 是在emac的 exec -path



如何指示magit找到正确的设置,或手动告诉人们什么设置?

解决方案

您可能希望控制您的$ HOME与Emacs的观点相同,并且从您的shell角度来看。有可能是它们不一样,因此在Emacs中找不到$ HOME / .gitconfig。


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.

这篇关于为什么emc中的vc-git和magit忽略了我的git配置设置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆