GitHub Sign Up With Gmail: Email Codes and Phone Prompts
A GitHub account is often the first thing a new developer creates, and a Gmail address is the most common one people use. A GitHub sign up with Gmail is usually quick: an email, a password, a username, a code from your inbox. Where people get stuck is the code that never lands, the puzzle check that keeps failing, or the phone and 2FA prompts that show up later. This is a calm walk through all of it.
Short answer: To create a GitHub account with Gmail, enter your Gmail address, choose a password and username, pass the puzzle check, then type the launch code GitHub emails you. GitHub does not usually need a phone at sign-up. Phone or app codes come later, when you turn on two-factor authentication.
GitHub sign up with Gmail, step by step
- Go to GitHub's sign-up page and type your Gmail address.
- Create a password. Use a fresh one, not your Gmail password.
- Pick a username. This is public and appears in your repository links, so choose something you will be happy with on a CV.
- Decide whether you want product emails. This does not affect the account.
- Complete the puzzle check, if shown.
- Open Gmail and find the email with the launch code. Type it into GitHub.
- Answer the short questions about how you will use GitHub, or skip them, and pick the free plan.
The exact screens shift a little over time, but this is the general flow most people see.
Why the GitHub launch code may not arrive in Gmail
This is the most common snag. Check these in order:
- Tabs and folders. GitHub mail often lands in Updates or Promotions, sometimes Spam.
- Typos. A dot in the wrong place in a Gmail address is ignored by Gmail, but a wrong letter is not. Check the address on the GitHub screen.
- Filters. An old Gmail filter might archive or delete mail from certain senders.
- Timing. Wait a few minutes before you resend. Several resends can confuse which code is the latest.
Search your Gmail for "GitHub" if you cannot find it. Our guide on email verification codes that do not arrive covers deeper causes like blocked senders and forwarding rules.
When phone codes come into the picture
GitHub generally does not require a phone number to create an account. Phones come up later, mostly through two-factor authentication:
- GitHub may ask contributors to enable 2FA, sometimes with a deadline shown in the dashboard.
- You can choose an authenticator app, a passkey, a security key, or in some countries SMS.
- Recovery codes are offered during setup. Save them.
If you prefer not to use a phone at all, an authenticator app works fine. We wrote about the phone-free route in our post on GitHub login without a phone number.
If you do want SMS as a backup and want it kept off your personal SIM, the number has to stay yours long term. A one-time number from a temporary service will not work for future login codes. That is the key thing to understand before choosing a number.
Separate GitHub accounts for work and personal use
Some developers keep a personal GitHub and a work one, each with its own Gmail. GitHub's own guidance tends to favour one account per person with access to several organisations, so check the current rules and your employer's policy before making a second one.
If you test sign-up flows in your own apps, which is a different thing entirely, you may need throwaway numbers for QA. Our post on virtual numbers for 2FA and OTP testing covers that. On SMS Feel, registration is free with no card needed, and the how it works guide explains ordering. For a number you keep, see the virtual numbers list, which includes long-term options.
First things to do after the account is live
- Turn on 2FA with an authenticator app or passkey, even before GitHub asks.
- Save recovery codes offline, not only on your laptop.
- Secure the Gmail account. Whoever controls that inbox can reset your GitHub password. Give Gmail its own 2-Step Verification.
- Add a second email to GitHub if you have one, as a backup contact.
- Set up SSH keys or a token for pushing code, rather than typing your password.
- Use the private email option for commits if you do not want your Gmail visible in public history. GitHub offers a no-reply address for this in its email settings.
Spend ten minutes on this list and the account will be ready for years of work.
FAQ: creating GitHub accounts with Gmail
Can I use any Gmail address for GitHub?
Yes. Any Gmail address you can read works. Use one you will keep, since it is how GitHub contacts you and resets your password.
Does GitHub need my phone number at sign-up?
Usually not. Phone numbers come up later, if you pick SMS as a two-factor method in a supported country.
The puzzle check keeps failing. What can I do?
Try another browser, turn off aggressive ad blockers or VPN for a moment, and take the puzzle slowly. It often passes on the next try.
Will my Gmail be public on GitHub?
Not by default on your profile, but it can appear in commit history unless you use GitHub's private no-reply email setting.
Can I change the Gmail on my GitHub account later?
Yes. Add the new email in settings, verify it, set it as primary, then remove the old one.