Git & GitHub · Getting Started

Creating a GitHub Account

Your GitHub account is part of your developer identity. Pick the username carefully and turn on 2FA from day one.

Beginner 5 min Lesson 3 of 19Shows Git 2.47 and GitHub.com as of 2026. GitHub changes its layout from time to time; button names stay the same.
0/19 in Git & GitHub
On this page · 5 min · Beginner

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#

TextA good account setup checklist Illustrative
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
Expected output
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#

  1. Sign up with an email you will keep.
  2. Verify the email.
  3. Enable 2FA with an authenticator app.
  4. Store the recovery codes safely.
  5. 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#

Using a college email only

You may lose access after graduating. Use a personal email and add the college one as a secondary address.

Not saving recovery codes

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
Text Illustrative
https://github.com/asha

Mini quiz#

Creating a GitHub Account quizMultiple choice Question 1 of 1

What gets you back into your account if you lose your 2FA phone?

Score so far: 0/0

Want more? Practise all Git & GitHub MCQs · Git & GitHub interview questions

My notes#

Saved in this browser.

Progress is saved in this browser. Sign in to sync.