最新消息:20210816 当前crifan.com域名已被污染,为防止失联,请关注(页面右下角的)公众号

【已解决】PyCharm中git提交出错:PyCharm author is not ‘Name ‘ and matches no existing author

Git crifan 9610浏览 0评论

折腾:

【记录】把已有的PyCharm项目代码加到已有的OSChina的git仓库中

期间,在PyCharm中,填写了作者crifan后,去commit and push

结果出错:

2016/10/9
20:55    Commit failed with error
            0 files committed, 13 files failed to commit: first version: support fake sms code, create new user
            –author ‘crifan’ is not ‘Name <email>’ and matches no existing author

添加我自己的邮箱,记得是oschina的作者后,重新试试:

错误依旧。

然后再去不填作者试试:

好像可以了:

20:58    13 files committed: first version: support fake sms code, create new user
20:59    Push successful: Pushed 1 commit to origin/master

另外去找找错误原因:

PyCharm author  is not ‘Name <email>’ and matches no existing author

PyCharm author  is not   and matches no existing author

git commit as different user without email / or only email – Stack Overflow

git – fatal: No existing author found with ‘XXX’ – Stack Overflow

-》

好像必须是:

‘Name <email>’

的形式才可以?

比如:

crifan <[email protected]>

就可以了?

果然是OK的,可以继续Push了:

【总结】

在PyCharm中,VCS的git去提交的界面中,对于author的话:

1.如果不输入,则使用默认的作者-》此处就是我自己:OSChina的crifan,是没问题的

2.如果输入了,则必须使用Name <email>的格式,比如:

crifan <[email protected]>

才可以,否则直接用Name或email的话,则会提示出错:

-author ‘xxx’ is not ‘Name <email>’ and matches no existing author

转载请注明:在路上 » 【已解决】PyCharm中git提交出错:PyCharm author is not ‘Name ‘ and matches no existing author

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

网友最新评论 (1)

  1. good idea
    xiaoheitu6年前 (2018-10-18)回复
88 queries in 0.172 seconds, using 22.10MB memory