re: Next step Git for those that already know add and commit VIEW POST

VIEW FULL DISCUSSION

This is actually the best! Thank you so much!

One question, though: with the aliases, is their anyway to make it so that it accepts terms? i.e. I want to make it so I can do $ git c "commit message", and it'll action that as $ git commit -m "commit message". Is that possible?

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"

Ah, gotcha! Thank you so much again!

code of conduct - report abuse