Skip to content
Learn Netverks

Lesson

Step 3/5 60% through track

commits-with-intent

Commits with intent

Last reviewed May 28, 2026 Content v20260528
Track mode
none
Means
Read / quiz
Reading
~1 min
Level
beginner

This lesson

This lesson covers Commits with intent as part of the Git track.

Version control is required for every professional codebase—this track builds habits before framework magic.

Pull requests, CI pipelines, open-source contributions, and local feature branches.

Read the lesson, run the copy-paste commands in your terminal, then verify with the self-check and MCQs.

Before collaborating on team repos or applying to junior roles.

Commits are communication. Teams read git log --oneline during incidents and reviews.

Good commit subjects

  • Imperative mood: “Add validation”, not “Added”.
  • One logical change per commit when possible.
  • Reference ticket IDs if your team uses them.

Never commit secrets

API keys in history require rotation and painful scrubbing. Use .env locally and gitignore it.

Self-check

  1. Rewrite a vague message like “fix stuff” into a clear subject.
  2. What should you do if you accidentally committed a password?

Interview prep

What does a good commit subject line look like?

Short (often ~50 characters), imperative mood (“Add validation”), and specific enough that someone scanning git log --oneline understands intent without opening the diff.

Why should you never commit API keys or passwords?

Repos are copied and searched; history is hard to purge fully. Use environment variables, secret managers, and rotate credentials if leaked.

Interview tip Lesson completion confidence

Can you explain this lesson in 30 seconds without reading notes?

Not saved yet.

Check yourself

Multiple choice — immediate feedback.

Discussion

Past discussion is visible to everyone. Only logged-in users can post comments and replies.

Starter discussion topics

  • What part of this lesson needs a second read?
  • What would you try differently in a real project?

Sign up or log in to post comments and sync lesson progress across devices.

No discussion yet. Be the first to ask a question.

Jump