Stage 2 · Lesson 2 of 9
Commits with clear messages
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
- GitHub repoFreeGitHub Skills: Introduction to GitHub
GitHub · Beginner
Free hands-on exercise: branch, commit, open and merge a pull request in about an hour
- CourseFreeThe Missing Semester of Your CS Education
MIT · Beginner
MIT lectures on the tools degrees skip; the shell and version control lectures are enough here
Practise
Keep handy
Also worth your time
How to choose, structure and present projects so a reviewer sees your best work first