Home

Version Control with GitHub Desktop: Build a Data Dashboard

You ask an AI to build you a working app, then change one thing and the whole thing breaks—with no way back. Version control fixes this: every “commit” is a save point like in a video game, and a “branch” is a parallel copy where you can try new ideas without touching the version that works. In this hands-on tutorial you’ll build a simple dashboard from a real heart-attack dataset with ChatGPT, edit it in VS Code, save your progress with GitHub Desktop, and branch off to add a chart—safely.

Key Concepts

What You’ll Need

Step 1: Create a Local Repository

Step 2: Open the Folder in VS Code

You’ll create and edit all your files in VS Code. Open your project folder once, and every file shows up in a sidebar—no hunting for files later.

Keep VS Code open—you’ll come back to it throughout.

Step 3: Download the Data

Step 4: Get the Dashboard from ChatGPT

Note: Sometimes, the pasted code starts or ends with a line of three backticks (```), delete those lines.

Step 5: Save the Dashboard to Your Project

Because you typed the real name index.html, VS Code saves it correctly—no extra steps, and the code is color-highlighted so it’s easy to read.

Step 6: Test the Dashboard in Your Browser

Note: After every refresh, click the button and pick the file again—browsers can’t auto-load files from your computer.

Step 7: Make Your First Commit (Save Point)

Git now tracks both your code and your data.

Step 8: Add a Filter and Commit Again

Step 9: View Your History

Step 10: Split the App into Separate Files

Separate files keep the project organized—and it’s how real apps (including React) are built.

Step 11: Create a Branch to Experiment

You’re now working on a copy. Anything you do here won’t affect main.

Step 12: Add a Chart on the Branch

Step 13: Switch Back to main and See the Difference

This is the magic of branches: your experiment is safely tucked away while main stays stable.

Step 14: Merge Your Chart into main

If you like the chart and want to keep it:

Next Steps

Troubleshooting

Workflow Overview


Created by Steven Ge on June 20, 2026.