1
0
mirror of synced 2026-01-26 21:05:30 -05:00
Files
docs/content/github/setting-up-and-managing-your-github-user-account/remembering-your-github-username-or-email.md
Emily Gould 5a20716c7e Restructure and move Git content (#18336)
* Rename map topic

* Delete map topic

* Rename map topic

* Add redirect

* Remove last two map topics

* Move article on adding a remote into a long-form guide

* Move article on changing a remote's URL

* Move articles on renaming and removing remotes

* Move remote URL article

* Fix typo

* Remove category index file

* Move a few articles to the new category

* Move a few more files

* Move managing remote repos article

* Move the rest of the getting started with git map topic

* Move the first half of the using git map topic

* Move the rest of the articles and 🔥 the directory

* Fix failing test

* Remove Using Git from product index

* Apply suggestions from code review

Co-authored-by: Laura Coursen <lecoursen@github.com>

* Apply suggestions from code review

Co-authored-by: Laura Coursen <lecoursen@github.com>
2021-03-25 14:42:36 -05:00

3.0 KiB

title, intro, redirect_from, versions, topics
title intro redirect_from versions topics
Remembering your GitHub username or email Are you signing in to {% data variables.product.product_location %} for the first time in a while? If so, welcome back! If you can't remember your {% data variables.product.product_name %} user account name, you can try these methods for remembering it.
/articles/oh-noes-i-ve-forgotten-my-username-email/
/articles/oh-noes-i-ve-forgotten-my-username-or-email/
/articles/remembering-your-github-username-or-email
free-pro-team enterprise-server
* *
accounts
notifications

{% mac %}

{% data variables.product.prodname_desktop %} users

  1. In the GitHub Desktop menu, click Preferences.
  2. In the Preferences window, verify the following:

{% endmac %}

{% windows %}

{% data variables.product.prodname_desktop %} users

  1. In the File menu, click Options.
  2. In the Options window, verify the following:

{% endwindows %}

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
<em>YOUR_USERNAME</em>

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.

{% tip %}

Tip: 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.

{% endtip %}

$ cd <em>YOUR_REPOSITORY</em>
# Change directories to the initialized Git repository
$ git remote -v
origin	https://{% data variables.command_line.codeblock %}/<em>YOUR_USERNAME</em>/<em>YOUR_REPOSITORY</em>.git (fetch)
origin	https://{% data variables.command_line.codeblock %}/<em>YOUR_USERNAME</em>/<em>YOUR_REPOSITORY</em>.git (push)

Your user name is what immediately follows the https://{% data variables.command_line.backticks %}/.

{% if currentVersion == "free-pro-team@latest" %}

Further reading