Rana Maninder Singh
Lesson 5 of 8Setup Guide

Git & Project Workflow

Lesson opener

In one line: Version control and a clean folder habit - required on course roadmaps Python and data paths.

Why it matters: This shows up at work when you need to version control and a clean folder habit - required on course roadmaps Python and data paths..

Before this lesson: Power BI install

Before you start

Want the full course? Start at git1 — Why Git exists for install through CI/CD. This page is a 15-minute shortcut for the setup guide.


What you will learn

Version control and a clean folder habit — required on course roadmaps Python and data paths.

Learning workflow cheat sheet
Learning workflow cheat sheet

Tutorial 1 — Why Git for learners

Without GitWith Git
report_final_v3.xlsxgit commit with message
Lost changesgit log to see history
Fear of breaking codegit checkout / branches to experiment

Tutorial 2 — Install Git

  1. Download Git for Windows.
  2. Install with default options.
  3. Verify:
git --version

Tutorial 3 — First repo (this lab)

In a terminal, cd into your clone of this lab (the folder that contains docs/, data/, and exercises/), then:

git status
git add docs/ data/ exercises/
git commit -m "Add practice work from learning session"

Never commit: passwords, .env, large .pbix with secrets, personal API keys.


Tutorial 4 — Folder discipline

FolderPurpose
data/Source CSVs (read-only copies)
outputs/Your charts, .pbix, exports
exercises/answers/Written answers, SQL scripts
notebooks/Jupyter work
scripts/Reusable Python

Also cover


Essential commands

Command / actionWhat it does
git statusSee changed files
git add fileStage a file for commit
git commit -m "msg"Save snapshot locally
git log --onelineView history
git diffSee unstaged changes

Practice

Do this now: Initialize or use existing git repo; make one commit with a practice file in exercises/answers/. Add .gitignore entry for .venv/ if you use venv.

Teacher walkthrough: 15-minute Git safety net

All figures illustrative.

Step 1 — Install Git; git --version.

Step 2 — Configure name/email.

Step 3 — Init or clone the lab; ensure .gitignore exists.

Step 4 — First commit of a tiny note file; optional remote later (git for depth).

Failure example: committed answers with API keys

Symptom: Secret in GitHub; scanners email you.

Diagnosis: Shortcut workflow skipped ignore rules.

Correction: Remove file; rotate key; add ignore; use full Git course undo lessons if history rewrite needed.

Validation: Fresh clone has no secrets.

Guided practice

When do you stop after this setup lesson vs continue to the full Git course?

Complete solution: Stop when you only need local commits for lab homework; continue to git1 for branches, PRs, and CI.

Independent practice

Acceptance criteria:

Common mistakes

  1. Thinking this 15-minute lesson replaces team PR skills.
  2. Init in the user home directory.
  3. No .gitignore for env files.

Checklist

  • [ ] git --version works
  • [ ] I made at least one meaningful commit
  • [ ] I know what not to commit (secrets)
  • [ ] Continue to Excel