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
This is perfect for command grouping.
Grouping Commands
{ list; } Placing a list of commands between curly braces causes the list to be executed in the current shell context. No subshell is created. The semicolon (or newline) following list is required.
legit(){ git add --all; git commit -m "$1"; git push origin master; }
legit 'your commit message here'