Claude Code Society, home

Learn, tool guides

Git and GitHub

Git saves versions of your project on your laptop. GitHub keeps a copy online, where others can see it and where GitHub Pages can turn it into a website. This guide gets you an account, connects your terminal, and puts a first repository online.

Make a GitHub account

  1. Sign up

    Go to github.com and click Sign up. GitHub's own walkthrough is Creating an account on GitHub.

    Use an email you'll still have after you graduate; your projects can outlast your FSU address. Your username shows up in your site addresses, like jordanlee.github.io, so pick one you'd put on a resume.

  2. Verify your email

    GitHub sends a message to the address you used. Open it and confirm.

Connect your terminal

  1. Tell Git who you are

    Once per computer. Use your name and the email on your GitHub account.

    Terminal
    git config --global user.name "Jordan Lee"
    git config --global user.email "jordan@example.com"

    Every save you make carries this name and email.

  2. Sign in to GitHub from the terminal

    Terminal
    gh auth login

    Choose GitHub.com, then HTTPS, then log in with a web browser. The sign-in finishes on github.com and the login is kept in your computer's credential store.

  3. Let Git use that login

    Terminal
    gh auth setup-git
    gh auth status

    The second line shows which account you're logged in as.

Your first repository

A repository is a project folder that Git tracks. Try it with any folder that has a file in it, such as the about-me folder from lesson 1.

  1. Start tracking the folder and save once

    Terminal
    cd about-me
    git init
    git add .
    git commit -m "First version"
  2. Create it on GitHub and push

    Terminal
    gh repo create about-me --public --source=. --push

    That makes a public repository with the folder's name on your account and sends your save up to it. Anyone can read a public repository, so never put a password, key or token in one.

  3. See it online

    Terminal
    gh repo view --web

    Your browser opens the repository page with your file in it. To make it a website, follow the GitHub Pages steps in lesson 3.

The four commands you'll use most

  • git status shows what changed since your last save.
  • git add . then git commit -m "what changed" saves a version.
  • git log --oneline lists your saves, newest first.
  • git push sends your saves to GitHub.

You can also ask Claude Code in plain words, like "what files have I changed?" or "commit my changes with a descriptive message".

Sources

Read on October 4, 2026.

  1. GitHub Docs, Creating an account on GitHub.
  2. Pro Git, First-Time Git Setup.
  3. GitHub CLI manual: gh auth login, gh auth setup-git, gh repo create, gh repo view.
  4. Creating a GitHub Pages site: free for public repositories on GitHub Free.
  5. Claude Code quickstart: asking Claude Code about Git in plain words.