猿问

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 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.


12345678_0001
浏览 159回答 1
1回答

慕森卡

你应该使用git config --global user.email "mark_e@smith.com"git config --global user.name "MarkESmith"其中字符串是user.emailand user.name,而不是用您的用户名参数化。
随时随地看视频慕课网APP

相关分类

Python
我要回答