I'm trying to make an alias to git commit
function gcam() {
git commit -a -m $@ ;
git status
}
when I invoke the command with gcam 'something' it works correctly, but if the message has a space in the middle, like gcam 'new commit' appears the message Paths with -a does not make sense
I was looking this solution, but it doesn't work for me, because i'm using $@ and not $1.Why using $@? Is just if i need to pass an additional argument to git commit.
Any idea to make it works this?
Thanks in advance