Open the Git Configuration File
git config --global --edit
git config --global -e
Once the configuration file opens (by default in Vim), navigate to the section labeled [alias]. If it doesn't exist, create it. Add the following code under the [alias] section:
[alias]
lazy = "!f() { git add -A && git commit -m \"$@\" && git push; }; f"
In Vim, press Esc and type :wq to save and close the file.
NOTE: Instead of "lazy" you can use any shortcut you want.
Now, you can commit and push changes with a single command. Simply type:
git lazy "Your commit message"
Don't know how to edit in VIM : Learn Here