Git and GitHub in VS Code: A Step-by-Step Walkthrough
Author
Nate Lesperance
·9 mins
This walkthrough is the hands-on companion to Why Git and GitHub Belong in Public Health. It follows the same small team and their Power BI report, one step at a time, showing each action on the command line and in VS Code’s Source Control panel.
Before You Start #
You need Power BI Desktop, Git1 and VS Code2 installed, and a GitHub account3. All four are free. On a managed work laptop, you may need to request the installs through IT. When installing Git for Windows, the default options are fine.
- Practise on a copy of a report, not the live one.
- Keep repositories out of folders synced by OneDrive or SharePoint (on many work laptops, that includes Documents), because syncing and Git can interfere with each other. A directory such as
C:\git\works well. - Commands are typed in a terminal. In VS Code, open one with Terminal → New Terminal.
Before your first real commit, read
Handling Sensitive Data and set up a
.gitignore. Anything you commit stays in the history, even if you delete it later.The Walkthrough #
Where Next #
- Back to the main article for why each step matters.
- Look up a term in the glossary, or find more commands under Extras.
Git, “Downloads” — https://git-scm.com/downloads ↩︎
Visual Studio Code — https://code.visualstudio.com/ ↩︎
GitHub, “Sign up” — https://github.com/signup ↩︎










