0

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

Umair Ahmed
  • 8,337
  • 4
  • 29
  • 37

1 Answers1

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

Using it:

git cm "message"
CodeWizard
  • 128,036
  • 21
  • 144
  • 167