GitHub is a web-based platform designed for developers and programmers to collaborate on projects, track changes in code, and manage version control.
It plays a crucial role in the world of software development, making it easier for teams to work together, share code, and contribute to open-source projects.
GitHub’s usernames typically consist of alphanumeric characters (letters and numbers) and may include hyphens (-).
However, they cannot start or end with a hyphen and also there cannot be spaces between the username.
The format is not case-sensitive, meaning “MyUsername” and “myusername” are considered the same.
Here are example list of valid GitHub usernames:
Visit GitHub: Open your web browser and go to the GitHub website at https://github.com/.
Sign In: If you’re not already logged in, click the “Sign In” button at the top-right corner and enter your GitHub credentials.
Profile Page: Once you’re logged in, click on your profile picture or your profile name at the top-right corner.
This will take you to your GitHub profile page.
Username Display: On your profile page, you will see your username displayed prominently, usually under your profile picture and name.
Also in the URL, the part after “https://github.com/
” is the username.
If you are already signed in to your GitHub account on your computer but forgot your username, then follow the steps below:
Open Terminal: Launch your terminal or command prompt. You can use an IDE like VSCode or your preferred terminal.
To Check Your Username: Run the following git command:
git config user.name
This command will display the username associated with your GitHub account.
If you wish to change your GitHub username, you can do so by visiting your GitHub account settings and selecting the “Change username” option.
⚠️
Be aware that changing your username will also update your profile URL, so inform your collaborators if necessary.