Git add,commit and push commands in one command

Grâce à cette astuce vous allez pouvoir git add . & git commit et git push en 1 seule commande !

Add these lines in your conso :

function lazygit() {
git add .
git commit -a -m "$1"
git push
}

Try it :

lazygit "first push"

Easy and fast !

Leave a Reply

Your email address will not be published. Required fields are marked *