git add, commit and push commands in one?

前端 未结 30 1502
隐瞒了意图╮
隐瞒了意图╮ 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:16

    You can try gitu.

    For the first time (node js has to be installed):

    npm install -g git-upload
    

    After that:

    gitu COMMIT_MSG
    

    To issue those three commands at once.

    The good thing is that you don't have to worry when you reinstall your system or when you want to do this on different computers and No file modification is needed. This also work on different platforms (not just Linux and Mac, but also Windows under command prompt like cmd and powershell) just that you have to install npm and nodejs (git of course).

提交回复
热议问题