首页 > 解决方案 > git 配置无法识别

问题描述

我无法运行 Pyscaffold putup,因为它告诉我,我的 git 用户名和电子邮件未设置。他们虽然设置。

我的设置有什么问题?

我这样设置我的 git 配置:

$ git config --global markee.email "mark_e@smith.com"
$ git config --global markee.name "MarkESmith"

它检查:

$ git config -l

markee.email=mark_e@smith.com
markee.name=MarkESmith

$ git config --global markee.name
MarkESmith

$ cat ~/.gitconfig

[markee]
    email = mark_e@smith.com
    name = MarkESmith

然后我尝试做我的putup操作:

$ putup boston_housing
ERROR: Make sure git is configured. Run:
  git config --global user.email "you@example.com"
  git config --global user.name "Your Name"
to set your accounts default identity.

标签: pythongitconfigconda

解决方案


你应该使用

git config --global user.email "mark_e@smith.com"
git config --global user.name "MarkESmith"

其中字符串是user.emailand user.name,而不是使用您的用户名参数化。


推荐阅读