University to job-ready

Stage 2 · Lesson 2 of 9

Commits with clear messages

Clean up your GitHub this month

A is a note to a future reader. That is often you in three months, or a scrolling through your history. A good message starts with a short summary line of around 50 characters that says what changed.

Write it as an instruction (the imperative): "Add export for expenses" or "Fix crash when marks file is empty". When the reason is not obvious, add a body underneath that explains why. Messages like "update", "final" or "asdf" tell nobody anything and make your look like a dump of files.

Clear commit messages also make git log useful when you need to find when a bug appeared. If you cannot describe a commit in one line, it probably does too much.

A question to check yourself, an AI practice session and 1 cheat sheet entry come with the full roadmap. Unlock

Resources for this stage

Start with· follow one of these

Practise

Keep handy

Also worth your time

Mark this stage as not done?