How can I combine these git commands?

后端 未结 4 870
孤街浪徒
孤街浪徒 2021-02-09 22:43

I do the following string of commands for git and my fingers are getting tired of typing them. :)

git add .
git commit -m \'Some message\'
git push
cap deploy
         


        
4条回答
  •  长情又很酷
    2021-02-09 23:28

    You can also combine the frequent commands in one line:

    $ git add . | git commit -m 'Some message' | git push | cap deploy
    

    Next time you just need the Up arrow to get it back, then push Enter

提交回复
热议问题