Open your .bashrc file and add the following:
gitup() {
git add .
git commit -m "$1"
git push -u origin master
}
alias gitup=gitup
Now you can cd into the local repo and run:
gitup 'commit message'
and it will trigger the gitup()
function and apply the commit message
that you've supplied to your commit!