I am using mac osx, and would like to make a simple bash script for uploading changed files to my github repository.
It should ask for my comments to the files that i'm committing something like:
git add .
git commit -m 'prompt for comments'
git push origin master
I don't know how to make the script, i just want to do it via terminal with a single command.
any help would be much appreciated.
I do know how to make aliases in my .bash_profiles though :-)
Thanks.
help readand google "bash user input"-moption offcommit, andgit commititself will simply open your preferred editor to enter the commit message. No need to prompt and read it separately.