CI/CD, GitOps & Delivery
Rebase, squash and branching strategies
A reviewer says 'please rebase and squash'. Do it right and the history reads like a story. Do it on a shared branch and you get an afternoon of duplicate commits and angry messages.
What is in the lesson
- A real situation where this goes wrong
- How it works, step by step
- A walkthrough with commands you can run
- How it fails in production, and how to tell
- Three quiz questions with explanations
Read this lessonFree. No account needed.
More in CI/CD, GitOps & Delivery
- Merge conflicts and pull requestsBeginner · 5 min
A conflict is Git asking you to choose, not an error. A pull request is where that choice, and every other change, gets reviewed before it lands.
- .gitignore and keeping secrets out of GitBeginner · 5 min
A committed password can remain in history and copies even after the file is deleted. Prevent it with .gitignore and environment variables, and know the real response…
- CI/CD: build, test, deploy and whyIntermediate · 5 min
A release every six weeks is six weeks of changes landing at once, and when it breaks nobody knows which change did it. CI/CD makes releases small enough to be boring.
- GitHub Actions: workflows, jobs and runnersIntermediate · 5 min
A pipeline is a YAML file in your repository. Learn five words (workflow, event, job, step, runner) and you can read any of them, including the one that just failed.
- Pipeline stages, artifacts and cachingIntermediate · 5 min
An 18 minute pipeline usually spends 12 of them redoing work it did last time. Order the stages, cache the inputs, and pass the artifact on instead of rebuilding it.
- Deploy strategies: rolling, blue-green and canaryIntermediate · 6 min
Every deploy replaces v1 with v2 while users are watching. The strategy decides how many of them see a bad v2, and how fast you can take it back.