Back to tutorials

What is GitHub?

GitHub: Your team workspace
GitHub is a platform where teams store, track, and collaborate on files—especially code and data.
Think of it as a shared folder with superpowers
Store
Track Changes
Collaborate
Repository = Your project folder
A "repo" is just a folder containing all your project files, plus a history of every change made.
wwf-discovery-day/
index.html
documentation/
guide.html
data/
analysis.csv
visualizations/
chart.html
For Discovery Day: Your instructor has created a repo with all the resources you need!
Clone = Get your own copy
"Cloning" downloads the entire repository to your computer so you can work on it.

GitHub.com
(Cloud)
→

Clone
→

Your Computer
(Local Copy)
VS Code: Source Control Panel
1. Click "Clone Repository"
2. Paste the GitHub URL
3. Choose where to save it
Branch = Your personal workspace
Create a branch to work on your part without affecting others. It's like having your own copy to experiment in.
main
Original Project
→
your-name
Your Workspace
Best Practice: Name your branch after yourself (e.g., "sarah-visualizations") so teammates know who's working on what.
Edit files like normal
Work on your files in VS Code just like you normally would. Create HTML, edit data, build visualizations.
VS Code: Editing your-chart.html
<div class="chart">
/* Your visualization code */
</div>
Modified • Not saved to GitHub yet

Changes exist only on your computer until you commit and push them!

Commit = Save a checkpoint
A "commit" is like saving a checkpoint in a video game. It captures your changes with a description.
VS Code: Source Control
Changes (3)
chart.html
style.css
data.json
Message: "Added deforestation visualization"
Commit
Commit Message Tip: Write what you did, like "Fixed chart colors" or "Added new data source"
Push = Upload to GitHub
"Pushing" uploads your commits from your computer back to GitHub so others can see them.

Your Commits
(Local)
→

Push
→

GitHub
(Cloud)
VS Code: After Committing
Push
Your changes will appear on GitHub.com
Pull request = "I'm done, please review"
When you're ready to submit your work, create a Pull Request. It's like saying "Here's my contribution, ready for feedback!"
Create Pull Request
From branch: sarah-visualizations
To branch: main
Title: Sarah's Amazon Deforestation Dashboard
Description: Interactive visualization showing deforestation trends 2000-2021
Create Pull Request
For Discovery Day: Your instructor will review your Pull Request and provide feedback!
Working together
Multiple people can work on different branches simultaneously without conflicts.
Sarah
Branch: data-viz
David
Branch: analysis
Emma
Branch: docs

Everyone works independently, then merges their contributions through Pull Requests!

Your Discovery Day workflow
Here's exactly what you'll do during Discovery Day:
  • Clone the project repository
  • Create your own branch
  • Build your visualizations
  • Commit your changes with messages
  • Push to GitHub
  • Create a Pull Request
You're ready to collaborate like a pro!