+[2014-08-17T23:36:40Z]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 +[2014-08-17T23:49:19Z]RemramYou can just put a trailing dash or something +[2014-08-17T23:50:07Z]Remramwait no, && totally should work in aliases +[2014-08-17T23:52:08Z]Remram[alias] vtest = !git commit -am "test deploy" --amend && git push vhost HEAD:master -f +[2014-08-17T23:52:17Z]Remram(I'm assuming git alias, not bash alias)
message no. 40299
Posted by lugub in #github at 2014-08-17T08:45:21Z
you'll have to rebase
+[2014-08-18T00:08:34Z]VxJasonxVI was talking about a bash alias +[2014-08-18T00:08:59Z]VxJasonxVdidn't think about git aliases. I've only ever used aliases with ; delimiters, never ^^ +[2014-08-18T00:09:01Z]VxJasonxV&&* +[2014-08-18T00:38:38Z]RemramI've got some git aliases, they are really useful +[2014-08-18T00:38:46Z]Remramhis link is about git aliases, too