Git module
Lesson 1
Why Git for data work
What belongs in Git for DE pipelines — and what must never be committed.
beginner20 minRun on your machine
What you will be able to do
- List what data teams version in Git
- Name secrets and data files that stay out of Git
- See where Git sits on the DCubes roadmap
Why this matters for data work
Pipelines are code. Without Git you cannot answer “what changed Friday?” or review a teammate’s SQL. With Git you can branch, review, and roll forward safely.
What goes in Git
- Python scripts and packages
- SQL files and dbt-style models (later)
compose.yaml, Dockerfiles, CI config- README and docs
- Small golden test fixtures (tiny CSVs)
What stays out
.envand passwords- cloud keys and tokens
.venv/andnode_modules/- large raw data dumps and warehouse extracts
- notebook checkpoint clutter (when possible)
Map of this module
- Getting Started
- init / status / diff
- add / commit / log
- gitignore
- clone and navigate 6–8. branches, merge, conflicts 9–11. remotes, GitHub, pull requests
- undo safely
- repo hygiene
- Demo: First Git shift
Practice on your machine
cd ~/dcubes/git-lab
git --version