Currently I have this and it works as expected if I use it like addcommit 'test commit'
but if I use it as addcommit test commit
it only sees the first word test
. Ideally I'd like to have the functionality of addcommit test commit
and it executing git add . && git commit -m 'test commit'
addcommit()
{
git add . && git commit -m "$1"
}
PS. I don't understand how the "$1"
works in this case, maybe that would be a good starting point to understanding how this should work.