Creating a GitHub Account
Your GitHub account is part of your developer identity. Pick the username carefully and turn on 2FA from day one.
On this page · 5 min · Beginner
On this page
- Learning objectives
- Explanation
- Step-by-step screens
- Code example
- Step by step
- Real-world use
- Common mistakes
- Best practices
- Remember this
- Practice exercise
- Mini quiz
- Related topics
- My notes
- Reading time
- 5 min
- Difficulty
- Beginner
- Updated
- Nov 25, 2026
Learning objectives#
- Sign up for a free GitHub account
- Choose a professional username
- Turn on two-factor authentication
- Save recovery codes safely
Explanation#
Go to github.com/signup, enter your email, a strong password and a username, and verify your email address. The free plan includes unlimited public and private repositories.
Your username appears in every URL (github.com/asha) and on your CV, so prefer your real name or a clean handle. You can change it later, but old links then break.
Two-factor authentication (2FA) asks for a code from an app such as Microsoft Authenticator or Google Authenticator when you sign in. GitHub requires it for anyone who contributes code. Download the recovery codes and keep them somewhere safe — they are the only way back in if you lose your phone.
Step-by-step screens#
Drawings of github.com, the Git installer, VS Code and a terminal. GitHub changes its layout from time to time; the button names stay the same. The red numbers match the numbered actions under each picture; names on your computer will differ.
Loading pictures…
Code example: A good account setup checklist#
1. github.com/signup → email, password, username (asha)
2. Verify your email address
3. Settings → Password and authentication → Enable two-factor authentication
4. Scan the QR code with an authenticator app, type the 6-digit code
5. Download recovery codes and store them in a password manager
6. Settings → Profile: add your name, photo and a one-line bio
Signing in on a new device now asks for your password and a 6-digit code.
This example is illustrative. Copy or download it and run it in your own environment; the expected output is shown above.
Step-by-step explanation#
- Sign up with an email you will keep.
- Verify the email.
- Enable 2FA with an authenticator app.
- Store the recovery codes safely.
- Fill in your profile.
Real-world use case#
A job applicant links github.com/asha on their CV; the clean profile with a photo and pinned projects makes a good first impression.
Common mistakes#
You may lose access after graduating. Use a personal email and add the college one as a secondary address.
Lose the phone and you lose the account. Save the codes before you need them.
Best practices#
- Professional username
- Turn on 2FA
- Keep recovery codes in a password manager
- Add a profile photo and bio
Remember this#
Username = your public URL.
2FA from day one.
Recovery codes = spare key.
Practice exercise#
Your task: Write the URL of the GitHub profile for the username asha.
Show solution
https://github.com/asha
Mini quiz#
What gets you back into your account if you lose your 2FA phone?
Want more? Practise all Git & GitHub MCQs · Git & GitHub interview questions
My notes#
Saved in this browser.