Get "dquote>" when executing "git commit"

date
Aug 3, 2022
slug
get-dquote-when-git-commit
status
Published
tags
Bugfix
Git
summary
type
Post

Problem

When I executed git commit on the Mac terminal, I got dquote> showed below:
notion image

What’s wrong

That was because I used Chinese punctuation mark  at the end of the commit but not the English style ".

Solution

There are two simple ways to fix that problem:
  1. Ctrl+C to quit editing, but need to re-enter the same command
  1. Just enter a " and go ahead

References


© Foy Wan 2022 - 2025