CH 04 / 75Part 1: Introduction — The Big Picture

Creating a GitHub Account

What you will learn on this page

  • Create a GitHub account
  • Know what to watch out for when choosing a username
  • Set up two-factor authentication (2FA)
  • Know how much you can do on the free plan
On this page14 items

From here on, you’ll start doing things hands-on. Creating a GitHub account itself takes about five minutes, but there are a few settings that are hard to change later, so this page explains those carefully.

Step 1: Sign up#

  1. Open https://github.com/ and click Sign up in the top right
  2. Enter your email address, password and username
  3. Solve the verification puzzle and enter the confirmation code sent to your email

The GitHub home page. Start creating an account from Sign up at ①

The account creation form. Enter your email address at ①, password at ② and username at ③

The Username at ③ is a setting that causes a lot of trouble if you change it later. Read Step 2 before you fill it in.

Step 2: Choose your username carefully#

This is the most important part. You can change your username, but doing so causes the following problems:

  • Your repository URLs (github.com/<username>/<repository>) change, and links other people have shared break
  • Your old username becomes available for anyone to claim (a risk of impersonation)
  • The URLs of sites you’ve published with GitHub Pages change too

Guidelines for choosing#

RecommendedBetter to avoid
Short and easy to rememberNames that are too long
Only alphanumeric characters and hyphensUnderscores aren’t allowed
A name you can keep using in the futureYour current employer’s name or a technology you currently use
Matches your social media handlesHeavy use of capital letters (URLs don’t distinguish case)

Personal accounts and organization accounts#

Even for work, you first create a personal account, then create an Organization and join it. Shared company accounts are not recommended. This is covered in detail in Part 7, #49.

Step 3: Email address visibility#

By default, the email address recorded in your commits may be visible to others. If you don’t want it public, use a noreply address.

  1. Your icon in the top right → Settings
  2. Emails in the left menu
  3. Turn on the Keep my email addresses private switch
  4. Note down the address shown below it, in the format 12345678+<username>@users.noreply.github.com

The menu that opens from the icon in the top right. Click the icon at ① and choose Settings at ②

You’ll use this menu many times on later pages.

The Emails screen in Settings. Open Emails at ①, turn on the Keep my email addresses private switch at ②, and note down the noreply address at ③

You’ll use the address at ③ when you do Git’s initial setup in Part 2, #06.

Step 4: Set up two-factor authentication (2FA)#

On GitHub, two-factor authentication is required for every user who contributes code. If you don’t set it up, features are restricted after a grace period.

The flow for enabling 2FA. Choose an authenticator app or SMS, enter the verification code, then save your recovery codes and enable it

Whichever method you choose, the final step of saving your recovery codes is the one you can’t redo.

Setup steps#

  1. Settings → Password and authentication
  2. Under Two-factor authentication, click Enable two-factor authentication
  3. Choose a method

The Password and authentication screen. Open Password and authentication at ① and click Enable two-factor authentication at ②

Choosing a method#

There are two methods to choose from at first.

MethodDescriptionRecommendation
Authenticator app (TOTP)An app on your phone or elsewhere shows a 6-digit code every 30 seconds◎ Recommended
SMSA code is sent to your mobile phone△ Not recommended (risk of SIM swapping)

Examples of authenticator apps: 1Password, Google Authenticator, the Passwords app on iOS.

Passkeys (fingerprint or face recognition) and security keys (physical keys) can be registered as additional methods after 2FA is enabled. You can’t choose them as the first method.

Always save your recovery codes#

When you enable 2FA, recovery codes (around 16 strings) are displayed.

The recovery codes screen. Save the codes with Download at ①, then enable 2FA with I have saved my recovery codes at ②

2FA isn’t enabled until you press ②. Check the contents of the file you saved at ① before pressing it.

Step 5: Set up your profile#

These aren’t required, but setting the following three will save you trouble:

  • Profile picture: With the default, nobody can tell who’s who
  • Display name (Name): Doesn’t have to be your real name. It can be set separately from your username
  • Bio: A one-line introduction

If you use GitHub for a company or organization, these effectively become your “business card.”

What you can do on the free plan#

The free plan is almost entirely sufficient for personal use.

ItemOn the free plan
Public repositoriesUnlimited
Private repositoriesUnlimited
CollaboratorsUnlimited
Issues / Pull RequestsUnlimited
GitHub PagesAvailable (with public repositories)
GitHub ActionsFree for public; within a monthly free allowance for private
GitHub CopilotA free plan (Copilot Free) with limited features and usage. Paid plans beyond that

What paid plans (Team / Enterprise) mainly add are management features for organizations (detailed permission settings, audit logs, etc.) and more Actions minutes. While you’re learning on your own, the free plan is plenty.

FAQ#

Q. Can I have more than one account?
A. Yes. However, each email address can be used for only one account, and using multiple accounts on the same computer requires extra credential setup. Starting with one account is recommended.

Q. Will my real name be public?
A. Not unless you put it in your display name (Name). However, the name recorded in your commits is the value you set in Git (Part 2, #06), and if you put your real name there, anyone can see it in public repositories.

Q. Can I work with repositories using just my password?
A. No. Since August 2021, password authentication for command-line operations has been discontinued, and you need a personal access token (PAT) or an SSH key. You’ll set this up in Part 6, #37.

Summary#

  • Changing your username later causes a lot of trouble. Choose a short name you can keep using in the future
  • If you don’t want your email address public, set up the noreply address first
  • Two-factor authentication is required. Set it up with an authenticator app and always store your recovery codes somewhere else
  • Even on the free plan, private repositories and collaborators are unlimited, which is enough for personal use
  • You can’t use a password for command-line operations. You need a token or SSH key (set up in Part 6, #37)

Next page#

05. The 10 Terms You Need to Know ── Repository, commit, branch… Get the words you’ll see again and again sorted out in one go, with a diagram of how they relate.