+[11 years ago]VxJasonxVan alias is executed as a single command, so bash will literally run a command called "git commit -am "test deploy" --amend && git push vhost HEAD:master -f" which will error because -f isn't a flag, and the rest of the parameters aren't relevant to git commit +[11 years ago]RemramYou can just put a trailing dash or something +[11 years ago]Remramwait no, && totally should work in aliases +[11 years ago]Remram[alias] vtest = !git commit -am "test deploy" --amend && git push vhost HEAD:master -f +[11 years ago]Remram(I'm assuming git alias, not bash alias)
+[11 years ago]VxJasonxVI was talking about a bash alias +[11 years ago]VxJasonxVdidn't think about git aliases. I've only ever used aliases with ; delimiters, never ^^ +[11 years ago]VxJasonxV&&* +[11 years ago]RemramI've got some git aliases, they are really useful +[11 years ago]Remramhis link is about git aliases, too