How to say这是我在github上 [英] How to say this is me in github

查看:47
本文介绍了How to say这是我在github上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

设置GitHub信息时出错,因此当我将其推送到存储库X时,出现的名称不是我的名字.我该如何解决并说是我?有什么办法吗?

I made a mistake while setting up my GitHub information, so when I pushed to a repository X the name that appeared is not my name. How can I fix it and say that was me? is there any way to do that?

在BitBucket中,回购管理页面中有一个名为用户名别名"的选项.

In BitBucket there is an option in repo admin page called "Username aliases".

注意:我是存储库X中的管理员.

Note: I'm an admin in the repository X.

推荐答案

通常,指示您有错误的电子邮件地址进行某些提交并希望对以后查看历史记录的人进行更正的方法是:使用.mailmap文件.在 git shortlog 手册页中对此进行了记录.为了使用它,每行应以您正确的名称和地址开头,然后继续以您希望映射到该正确名称和地址的历史记录中出现的任何名称/地址组合.例如:

In general, the way to indicate that you have some commits with the wrong email address and wish to correct that for people looking at the history in the future is to use the .mailmap file. This is documented in the git shortlog manual page. In order to use it, each line should start with your correct name and address, and then continue with any name/address combinations that appear in the history that you wish to map to that correct name and address. For example:

Mhd Aljobory <aljobory@example.com> Wrong Name <example@laptop.(none)>

我不知道GitHub是否支持通过mailmap进行翻译,但这是各种Git工具用来解决此问题的标准方式.

I don't know if GitHub supports translating via mailmap or not, but this is the standard way that various Git tools use for solving this problem.

这篇关于How to say这是我在github上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆