我在哪里可以找到我的帐户中的 GitHub ID?

GitHub 用户名和 GitHub ID 的区别是什么?我被问到我的 Github ID 为某个项目,我碰巧给了我的用户名。但是这个人无法在 GitHub 上找到我的用户名。所以我从下面的 URL 得到了一个 GitHub ID:

Http://caius.github.io/github_id/

但我无法直接从我的账户中找到这个 ID。我的 GitHub 账户在哪里可以找到这个?如果有人能详细解释一下就好了。

谢谢你。

181666 次浏览

It can be easily retrieved using GitHub API:

https://api.github.com/users/your_github_user_name

where instead of your_github_user_name you must use the desired GitHub username.


Example:
https://api.github.com/users/github

It can be easily retrieved using Github API.

Example: https://api.github.com/users/username

enter image description here

From this answer

If you cannot use the API answer or from http://caius.github.io/github_id/ you can go to github --> settings --> emails, under the Primary email address you will find {id}+{user_name}@users.noreply.github.com.

This is at least true if you have Keep my email address private checked.
I have this text in the Keep my email address private explanation, and I'm guessing this will be there even if it is turned off.

Look for 'noreply' in the emails section.

It can be easily retrieved using Github API. If you cannot use the API answer or from http://caius.github.io/github_id/ you can go to github --> settings --> emails , under the Primary email address you will find {id}+{user_name}@users.noreply.github.com. The format is simillar to this: 50826640+hirwablessing@users.noreply.github.com, that 50826640 is the id.

Don't use the ID stated in other answers I tried this and it didn't work and said it was invalid on AWS.

It's located on the main GIT repository. Those random letters and numbers are below the add file button with no description, obviously. Not only that but it's clickable if you click into it you'll find a much longer commit ID. You want the longer one.

Everyone loves completely unnecessary complexity in a platform!!

Step-1: Go to this link: https://caius.github.io/github_id/

Step-2 Enter your Github username

You got it!

The second method is:

  1. Go to your GitHub account and click on the Settings option.
  2. Go to the emails section.
  3. You id is listed there. The format is: {id}+{user_name}@users.noreply.github.com