I created a function named pushall
that runs
git add .
git commit -m "$argv"
git push
however when I run I get the following error
Aborting commit due to empty commit message.
how can make the function ask me for input to enter into the commit message so that the function works as intended?
You could do
function pushall
git add .
if test (count $argv) -eq 0
git commit
else
git commit -m "$argv"
end
git push
end