git 别名命令不起作用 任何人都可以描述我 git 别名命令的语法

git alias command is not working can any one describe me syntax of git alias command

git 别名命令无效 我试过 git alias'cm' commit -m 但这对我不起作用。

#set the alias
git config --global alias.cm "commit -m"

使用它:

git cm "message"