Created
September 6, 2019 19:43
-
-
Save joeldesante/6e7d03b2c39ebe9720b100177cbe6af4 to your computer and use it in GitHub Desktop.
A small script I made to help others efficently push their code to their repository.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment