> >
Data & Tech
>

How to Write Git Commit Messages 

How to write Git commit messages correctly, in the imperative present tense.

Contents

AI speaking coach

Practise speaking with AI. Sound sharper at work.

Talk out loud, by voice, from B1 to C2. Get feedback on mistakes, filler words and pace after every talk.

3,000+ tech pros learning with Speak Tech English

Imperative Mood

Put simply, the imperative mood is used to tell someone to do something. It allows us to give clear and direct commands, requests and instructions.

How to form the imperative mood?
→ base form of the verb
→ subject is usually omitted
→ articles (a/an/the) can be omitted in writing

Business Examples

Talking to a virtual assistant: “Alexa, set a timer for 5 minutes.”
User interface prompts: “Enter password.”
Invitations: “Feel free to stop me and ask questions.”
Speaking to ChatGPT: “Check my CV for spelling mistakes”

Note: the imperative mood is only used in present tense

imperative

Politeness

Be careful. Sometimes the imperative mood can sound rude!

To soften it, consider using the negative imperative, adding “please” or rephrasing it into a suggestion.

Command TypeExampleGood for…
PositiveSchedule the meeting for TuesdayRequests to a machine/device
Negative Don’t forget to schedule the meeting for TuesdayReminders/chasing up a task
PolitePlease schedule the meeting for TuesdayRequests to a person
SuggestionLet’s schedule the meeting for TuesdayProposing an idea or option

Writing Git Commit Messages

Did you know commit messages should be written in imperative present tense?

When writing commit messages, think of them as instructions to the version control system and other developers.

Your message should describe what applying the commit will do, not what you did.

You can read more about this in the git documentation.

Commit Message Examples

Update npm dependency to latest version 
Fix bug preventing users from submitting subscribe form 
Update incorrect client phone number within footer per client request 

Remember: articles can be omitted when writing imperative sentences

Picture of Sophie Filer

Sophie Filer

Sophie is an experienced English as a Second Language Instructor from the UK. She's also worked as a Data Analyst for several global companies, with expertise in python, finance and mathematics.
Picture of Sophie Filer

Sophie Filer

Sophie is an experienced English as a Second Language Instructor from the UK. She's also worked as a Data Analyst for several global companies, with expertise in python, finance and mathematics.

EXPLORE OUR COURSES

You Might Like...

English for Programmers book cover

Get our best-selling textbook free

Join 3,000+. Instant access + weekly tips.

Get free access

You'll get the free textbook plus weekly tech-English tips by email.