I have created a function in .zshrc:
function gc {
git commit -m $1
}
but when I am trying to call this function:
gc "some commit message"
I get:
error: pathspec 'some commit message' did not match any file(s) known to git
what have I done wrong?