python - 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.
解决方案
你应该使用
git config --global user.email "mark_e@smith.com"
git config --global user.name "MarkESmith"
其中字符串是user.email
and user.name
,而不是使用您的用户名参数化。
推荐阅读
- python - 以表单输入,然后将其与存储在 django 中的数据库中的值进行比较
- html - CSS background-image 属性可以用来调整背景图片的大小吗?
- cellular-automata - 自初始化元胞自动机
- java - spring boot 数据库错误数据源“org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaConfiguration”
- sql - 在 SQL 中正确存储多个断开连接的数据集
- java - 在 BroadcastReceiver 上禁用 10 秒超时。安卓开发
- python - Python Pandas:将 timedelta 值从减去两个日期转换为整数数据类型 (AttributeError)
- python - 将高斯消元的结果与 numpy.linalg.solve 的输出进行比较
- python - 使用 selenium 自动填写日期
- javascript - 带有选择和输入的 jQuery/Javascript 表格过滤器