我有一个别名:
$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别名?