Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- printf "*--------------------------------------------*\n\n"
- printf "Looks like you want to push something to GitHub. \n\nPlease specify what you added in a sentence or two \n>> "
- read updateLog
- printf "\nOkay! Which branch will you be pushing too? \n[Type the name of the branch you would like, or press [ENTER] for master.] \n>> "
- read branch
- if [ "$branch" == "" ]; then
- branch="master"
- fi
- printf "\n\t>> $branch has been selected\n"
- printf "\t>> $updateLog will be sent as the message\n\n"
- git add .
- git commit -m "$updateLog"
- git push origin $branch
- printf "\n\n\n[Complete...]\n\n"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement