DEV Community

Discussion on: Next step Git for those that already know add and commit

Collapse
 
t4rzsan profile image
Jakob Christensen

You are welcome :)

Aliases are really just a search and replace. So you can do

git config --global alias.cm "commit -m" 

and then


git cm "My commit message"

will be replaced with

git commit -m "My commit message"
Collapse
 
ghost profile image
Ghost

Ah, gotcha! Thank you so much again!