Skip to main content

GitHub 사용자 이름 또는 메일 저장

오랜만에 로그인하시나요? 그렇다면 다시 오신 것을 환영합니다! 개인 계정의 사용자 이름을 기억할 수 없는 경우 이러한 방법을 사용해 볼 수 있습니다.

Platform navigation

GitHub Desktop users

  1. In the GitHub Desktop menu, click Preferences.
  2. In the Preferences window, verify the following:
    • To view your GitHub username, click Accounts.
    • To view your Git email, click Git. Note that this email is not guaranteed to be your primary email.
  1. In the File menu, click Options.
  2. In the Options window, verify the following:
    • To view your GitHub username, click Accounts.
    • To view your Git email, click Git. Note that this email is not guaranteed to be your primary email.

Finding your username in your user.name configuration

During set up, you may have set your username in Git. If so, you can review the value of this configuration setting:

$ git config user.name
# View the setting
YOUR-USERNAME

Finding your username in the URL of remote repositories

If you have any local copies of personal repositories you have created or forked, you can check the URL of the remote repository.

This method only works if you have an original repository or your own fork of someone else's repository. If you clone someone else's repository, their username will show instead of yours. Similarly, organization repositories will show the name of the organization instead of a particular user in the remote URL.

$ cd YOUR-REPOSITORY
# Change directories to the initialized Git repository
$ git remote -v
origin	https://github.com/YOUR-USERNAME/YOUR-REPOSITORY.git (fetch)
origin	https://github.com/YOUR-USERNAME/YOUR-REPOSITORY.git (push)

Your username is what immediately follows the https://github.com/.

Further reading