git alias with ...&& git push命令不会推动

时间:2015-12-02 19:08:01

标签: git git-alias

我有一个别名:

$HOME/.gitconfig

[alias]
        ...
        cmall       = !git add -A && git commit -m $1 && git push

从我读过的内容看起来是正确的,但git push部分不起作用:

(repo)me:~/work_projects/repo$ git cmall "test"
On branch ckc/blah
Your branch is ahead of 'origin/ckc/blah' by 1 commit.
  (use "git push" to publish your local commits)
nothing to commit, working directory clean

我进入shell并git push,它运行得很好。你怎么推入git别名?

0 个答案:

没有答案