【发布时间】:2011-04-22 07:24:57
【问题描述】:
我有一个与存储库 (git) 链接的 Redmine 项目。 我想将我的提交与我的 Redmine 帐户相关联。现在我的每次提交都是由“匿名”用户进行的,因为 RM 用户名和 repo 用户名不同。
【问题讨论】:
标签: git repository redmine
我有一个与存储库 (git) 链接的 Redmine 项目。 我想将我的提交与我的 Redmine 帐户相关联。现在我的每次提交都是由“匿名”用户进行的,因为 RM 用户名和 repo 用户名不同。
【问题讨论】:
标签: git repository redmine
在您的项目设置下,在带有您的存储库 URL 的灰色部分下方的存储库选项卡中,有一个用户图标。此屏幕将允许您将 repo 用户名与 redmine 用户名进行映射。这存在于我的 redmine 版本 1.1.3.stable 中。不确定它是在哪个版本中实现的。
【讨论】:
你看到like those的消息了吗?
Redmine is checking your changes for correctness...
Authenticated as Lukasz Dywicki
Changes:
Ref: refs/heads/fusion type: commit
Error: Initial commit can be done only by repository manager
Commit: 442155e0797c4f4fbae74f91265ab664f3ca0880
Commit: c8a137d577f2033721c9d52e0907b7e9f8ca48b2
Error: Commit author name or email is wrong
Error: Execute following commands and _recreate_ commit:
Error: git config --global user.name "Lukasz Dywicki"
Error: git config --global user.email luke@code-house.org
如this thread中所述:
请记住,
~/.gitconfig文件中的电子邮件应与您在 Redmine 中注册的电子邮件一致:
检查您的电子邮件:
git config --get user.email
设置您的电子邮件:
locally (in project folder):
git config user.email your@email.com
or globally (anywhere):
git config --global user.email your@email.com
这是因为 redmine 代码中的逻辑(问题?)..
【讨论】: