smart-commit
smart-commit copied to clipboard
Ignore `-m` option when used
-
commit "<commit message>" -
commit -m "<commit message>"
These two will both gives the same output. -m is ignore.
Motivation
- The
-moption is typically used with thegit commit -mcommand. However, sometimes out of habit, users may mistakenly add-mwhen using thecommitcommand alone, resulting in an error, as illustrated below.