Setting Up a GitHub Account
topics
- Create a GitHub account
- Connect your laptop so files can sync to GitHub
- Using Git itself is covered in the next deck
Git vs. GitHub
- Git: software on your laptop that tracks changes to files
- GitHub: website that stores your projects online
- Your laptop does the work; GitHub keeps the backup and shares it
Create Your Account
Sign Up
- Go to github.com and click Sign up
- Enter your email, a password, and a username
- Verify your email with the code GitHub sends
- Username tip: keep it professional (e.g.,
jsmith-ds); it appears in every link - Email tip: sign up with a personal email so the account outlives college
Turn On Two-Factor Authentication
- Required by GitHub for anyone who uploads code
- Settings → Password and authentication → Enable two-factor authentication
- Easiest options: an authenticator app or the GitHub Mobile app
- Save your recovery codes somewhere safe; they are your only way back in if you lose your phone
Connect Your Laptop
Two Options
| Method | Difficulty | Recommendation |
|---|---|---|
| GitHub Desktop | Point and click | Use this |
GitHub CLI (gh) |
A few terminal commands | Optional |
- Both sign you in through your web browser
- GitHub no longer accepts your password from your laptop; these tools handle sign-in for you
GitHub Desktop (Recommended)
- Download from desktop.github.com and install
- Open it and click Sign in to GitHub.com
- Log in through your browser and click Authorize
- When asked to Configure Git, enter your name and your GitHub email
- That’s it: your laptop is connected
GitHub CLI (Optional)
- Useful if you also run Git from the terminal, RStudio, or VS Code
- Install from cli.github.com, then run:
gh auth login- Choose: GitHub.com → HTTPS → Yes → Login with a web browser
- Set your name and email once:
git config --global user.name "Your Name"
git config --global user.email "you@example.com"Test It
- In GitHub Desktop: File → New Repository, name it
test-repo, click Create - Click Publish repository
- Check
github.com/your-username: iftest-repois there, syncing works
FYI: What Is Copilot?
- An AI coding assistant built into GitHub and editors like VS Code
- Suggests code as you type and answers questions in a chat panel
- Students can apply for free benefits at education.github.com
- The student Copilot plan is limited, and availability has changed during 2026
- Treat its output like advice from a classmate: check it before you use it
- Follow the course AI policy