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?
$ git c "commit message"
$ git commit -m "commit message"
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!
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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
and then
will be replaced with
Ah, gotcha! Thank you so much again!