> >
Learning Guides
>

How to Use The Imperative Present Tense for Git Commit Messages

Master Git commit message grammar with imperative present tense. Improve developer communication and download the complete English for Programmers guide.

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

Knowing what to say is half the battle. Knowing how to say it clearly, in the right moment — that’s what sets senior engineers apart.

For non-native English speakers in tech, mastering grammar patterns like this builds confidence in one of the most visible aspects of your daily work. If you want to hear professional technical English in action — including how native speakers discuss commits, code reviews, and PRs — the free resources at Speak Tech English include hours of real developer audio to train your ear.

🎧 Free Resource

Speak English like a senior engineer. 3 hours of real tech audio — standups, scrum meetings, tradeoff discussions — plus grammar and exercises. Free.

Explore Free Resources →

How to Use the Imperative Present Tense for Git Commit Messages

Git recommends writing commit messages in the imperative present tense. This small grammar shift instantly makes your commits clearer and more professional.

Imperative present tense examples for Git commit messages

Practice Exercise

Rewrite the following commit messages using the imperative present tense:

  • Changed the colour scheme of the homepage → __________________________
  • Updating the library dependencies → __________________________
  • Implemented a new algorithm for sorting → __________________________
  • Fixed a bug in the login module → __________________________
  • Adding new features to the dashboard → __________________________
  • Refactored the code for better readability → __________________________

What Is the Imperative Mood?

The imperative mood tells someone to do something, uses the base form of the verb, and usually has no explicit subject.

  • “Alexa, set a timer for 5 minutes.”
  • “Please call me.”
  • “Submit your reports by Friday.”

These are commands, requests, and instructions — and that’s exactly how commit messages should function.

💡 Tip

Think of your commit message as completing this sentence: “If I apply this commit, I will…”

  • ✅ Recommended: Add new feature for user authentication
  • ❌ Not Recommended: Added a new feature for user authentication
  • ✅ Recommended: Resolve issue with data validation
  • ❌ Not Recommended: Resolved the issue with data validation

When writing imperative sentences, you can also omit articles (a/an/the) to keep messages concise.

Master the Most Common Commit Verbs

  1. Add — for new features, files, or functionality
  2. Fix — for bug fixes and corrections
  3. Update — for modifications to existing code
  4. Remove — for deleting code, files, or features
  5. Refactor — for code restructuring without changing functionality
  6. Improve — for performance or quality enhancements

💬 Real example

Instead of “Updated the React components for better performance,” write “Improve React component performance with lazy loading”

⚠️ Watch out

Avoid gerunds (-ing forms) like “Adding” or “Fixing” — these create ambiguity about whether the action is complete.

Write Specific and Descriptive Messages

❌ Vague

“Fix login problem”

✅ Specific

“Fix OAuth redirect URL validation in login service”

💡 Tip

Include the technology or framework when relevant: “Fix React component state update in user dashboard”

Common Mistakes

❌ Past tense

“Fixed the database connection issue”

✅ Imperative

“Fix database connection timeout”

❌ Continuous tense

“Updating dependencies to latest versions”

✅ Imperative

“Update dependencies to latest versions”

❌ Including subject

“This commit adds validation to user input”

✅ Imperative

“Add validation to user input fields”

⚠️ Watch out

The most common mistake is mixing tenses within the same project. Pick imperative and stick with it consistently across all commits.

Apply Team and Project Conventions

❌ Inconsistent

“feat: Added new search functionality”

✅ Consistent

“feat: Add advanced search functionality”

🗣️ What native speakers actually say

Many teams use tools like Conventional Commits, but the imperative mood remains the foundation regardless of additional formatting rules.

Pro Tips

  • Use active voice: “Remove deprecated API endpoints” instead of “Deprecated API endpoints are removed”
  • Be specific about scope: “Fix memory leak in image processing service” tells you exactly where the problem was
  • Include context for non-obvious changes: “Update Node.js to v18 for security patches” explains the why
  • Keep related commits together: Each commit should represent one logical change using consistent imperative style

Key takeaway

Every commit message should answer: “What will this commit do to my codebase?”

Your Next Step

Apply the imperative mood to your next three commits this week — then check how much cleaner your Git log looks. That’s how it becomes habit.

For more grammar and writing practice built specifically for developers, explore the free resources at Speak Tech English — including real audio from technical discussions that show professional English patterns used naturally in engineering environments.

English for Developers — communicate clearly in real engineering environments

English for Tech Interviews — structure strong, confident answers

The Stack Newsletter — weekly insights for global engineers

Mockly English Interviews — practice real interview scenarios

Picture of Tom Otto

Tom Otto

Tom is an experienced English as a Second Language Instructor from the UK. He also has a strong background in Data Engineering, marketing and working at startups.
Picture of Tom Otto

Tom Otto

Tom is an experienced English as a Second Language Instructor from the UK. He also has a strong background in Data Engineering, marketing and working at startups.

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.