I would like to know how to create an alias for git that runs the following commands:
- git add (all modified files)
- git commit (including a message)
- git push
I tried the following configuration in gitconfig:
[alias]
upl = !git add -A && git commit -m "$2" && git push origin master
I would like to use the alias by passing a parameter to the message
git upl "cabecalho alterado"
Error message received
cpd@INFORMATICA-01 MINGW64 /c/wamp/www/alura_git/curso_git (master) $ git upl "teste" error: switch 'm' requires a value usage: git commit [<options>] [--] <pathspec>...