git alias command is not working
I tried
git alias'cm' commit -m
but this is not working for me.
Asked
Active
Viewed 162 times
0
Umair Ahmed
- 6,967
- 3
- 29
- 33
-
1This post answers your question well. http://stackoverflow.com/questions/2553786/how-do-i-alias-commands-in-git – Neha Gangwar Jan 14 '16 at 11:39
1 Answers
6
#set the alias
git config --global alias.cm "commit -m"
Using it:
git cm "message"
CodeWizard
- 110,388
- 20
- 126
- 153