git add, commit and push commands in one?

前端 未结 30 1462
隐瞒了意图╮
隐瞒了意图╮ 2020-12-02 03:15

Is there any way to use these three commands in one?

git add .
git commit -a -m \"commit\" (do not need commit message either)
git push

Som

30条回答
  •  再見小時候
    2020-12-02 04:11

    You can use bash script , set alias to launch any command or group of commands

    git commit -am "your message" && git push 
    

提交回复
热议问题