Being lazy with git

I run the combo "git add . + git commit -m "something" + git push" so many times...

In Powershell there is a settings file that run everytime. To edit it in VS Code, in a powershell terminal - run

code $profile

Once there, just do a little something like this and save.

function quickgit() {
    Param ([string]$1)    
    git add .
    git commit -a -m "$1"
    git push
}

And reload your powershell terminal.

Now you can do

quickgit "nice message"

instead of..

git add .
git commit -m "nice message"
git push

Nice.

Mårten Johannesson

Mårten Johannesson