Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Git Commit Empty ReminderNew to Visual Studio Code? Get it now.
Git Commit Empty Reminder

Git Commit Empty Reminder

Coder for Life

| (0) | Free
Shows a modal reminder when a Git commit is attempted without a message.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Git Commit Reminder

This VS Code extension shows a modal reminder when Git opens .git/COMMIT_EDITMSG without a user message, prompting the user to type a commit message in the built-in editor.

Commands

  • Git Commit Reminder: Reset Reminder State
    • Command id: gitCommitReminder.resetReminderState
    • Clears lifetime reminder count and temporary snooze counters.

Settings

  • gitCommitReminder.enableCommitMessageReminder (default: true)
    • When Git opens .git/COMMIT_EDITMSG, the extension shows a native modal warning and keeps the regular editor open for typing the message.

Development

  • Install dependencies:
    • npm install
  • Compile:
    • npm run compile
  • Run extension for testing:
    • Press F5 in VS Code to start an Extension Development Host.

Git commit reminder behavior

When gitCommitReminder.enableCommitMessageReminder is enabled:

  1. Git opens .git/COMMIT_EDITMSG.
  2. Extension detects the file open event.
  3. Extension shows a native modal warning dialog.
  4. User types commit text directly in the opened COMMIT_EDITMSG editor.
  5. User confirms the dialog and proceeds with commit again.

Reminder policy:

  • The modal is counted in persistent lifetime state.
  • Before 5 total reminders: only OK is shown.
  • At 5 reminders and after: an additional Got it, don't remind me button appears.
  • Choosing Got it, don't remind me suppresses the next 5 reminder opportunities.
  • After those 5 skipped opportunities are consumed, reminders automatically resume with the same disable option available.

Commit editor modality note

The commit warning uses VS Code's native modal message API (showWarningMessage with modal: true).

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft