smart-commit icon indicating copy to clipboard operation
smart-commit copied to clipboard

Ignore `-m` option when used

Open maskeynihal opened this issue 1 year ago • 4 comments

  • commit "<commit message>"
  • commit -m "<commit message>"

These two will both gives the same output. -m is ignore.

Motivation

  • The -m option is typically used with the git commit -m command. However, sometimes out of habit, users may mistakenly add -m when using the commit command alone, resulting in an error, as illustrated below.
image

maskeynihal avatar Nov 01 '24 08:11 maskeynihal