[英]gitlab ERROR: Unknown Author while trying to push changes
I have this problem from yesterday but can't solve myself. 我昨天有这个问题,但是不能解决自己。 Example my user name is: My Name user id is: my.name This shows following error:
示例我的用户名是:My Name用户ID是:my.name这显示以下错误:
remote: ********************************************************************************
remote: ERROR: Unknown Author.
remote: found My Name (name.my)
remote: Please contact your GIT administrator and/or consult Confluence
I don't understand why my gitlab id was reverted (my.name --> name.my) while trying to connect to repo. 我不明白为什么在尝试连接回购协议时,我的gitlab id被还原(my.name-> name.my)。 Should I have any changes in config file to solve this problem?
我应该对配置文件进行任何更改以解决此问题吗?
it is a problem of git configuration or about the repository? 这是git配置或存储库的问题吗?
Git will use your configured username and email. Git将使用您配置的用户名和电子邮件。 To check what
git
thinks your name and email are, use: 要检查
git
认为您的姓名和电子邮件地址,请使用:
git config --global user.name
git config --global user.email
These values need to reflect your remote user (the one in the target git instance). 这些值需要反映您的远程用户(目标git实例中的那个)。 If you need to change either then use:
如果您需要更改两者之一,请使用:
git config --global user.name "My Name"
git config --global user.email "my.name@example.com"
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.