git add, commit and push commands in one?

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

    I did this .sh script for command

    #!/bin/sh
    cd LOCALDIRECTORYNAME/  
    git config --global user.email "YOURMAILADDRESS"
    git config --global user.name "YOURUSERNAME"
    git init
    git status
    git add -A && git commit -m "MASSAGEFORCOMMITS"
    git push origin master
    

提交回复
热议问题