CI/CD, GitOps & Delivery
git init, add, commit, status and log
The daily Git loop is four commands and one idea: the staging area, where you choose what goes into the next commit.
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
- Why version control: commits, history and GitBeginner · 5 min
Before Git, "final_v3_REAL.zip" was a workflow. Git gives every change a name, an author and a way back, and every clone holds the whole history.
- Branches, merging and fast-forwardBeginner · 5 min
A branch is a movable label on a commit, not a copy of your project. That is why making one takes a millisecond and merging one is routine.
- Remotes: clone, fetch, pull and pushBeginner · 5 min
A remote is another copy of the repository, usually on GitHub. Four commands move commits between copies, and fetch is the safe one to run first.
- Undoing mistakes: restore, reset, revert and reflogBeginner · 6 min
Git has four different undo tools because there are four different mistakes. Pick by one question: has anyone else seen this commit?
- 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.