1

我有一个别名:

$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 别名?

4

0 回答 0