我无法将任何文件提交到我的新 CodeCommit 存储库,不知道为什么。
我已经能够克隆我的存储库,所以我能够连接到它。这似乎排除了身份验证问题。但是,一旦我添加然后提交一个文件,我就会收到以下错误:
$ git commit -m "test"
*** Please tell me who you are.
Run
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
to set your account's default identity.
Omit --global to set the identity only in this repository.
fatal: empty ident name (for <(null)>) not allowed
我创建了一个附加了 AWSCodeCommitPowerUser 策略的 IAM 用户。这是当前通过在命令行上调用 aws configure 配置的用户。
我已经检查过git config --global -l
,它确实返回了 的内容.gitconfig
,因此它正在按照 AWS 指南进行肠道配置设置。该文件的内容如下:
[credential]
helper = !aws codecommit credential-helper --profile=IAMUserName $@
UseHttpPath = tru
我真的不确定我在这里缺少什么。我可以连接到存储库并克隆它,我的配置看起来与教程的内容相匹配,但我无法提交。我试过删除文件的--profile
一部分,.gitconfig
但这也没有解决问题。
谁能告诉我这里缺少什么?