0

git alias command is not working I tried git alias'cm' commit -m but this is not working for me.

Umair Ahmed
  • 6,967
  • 3
  • 29
  • 33

1 Answers1

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

Using it:

git cm "message"
CodeWizard
  • 110,388
  • 20
  • 126
  • 153