Advertisement
Guest User

Untitled

a guest
Sep 17th, 2019
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. printf "*--------------------------------------------*\n\n"
  4. printf "Looks like you want to push something to GitHub. \n\nPlease specify what you added in a sentence or two \n>> "
  5. read updateLog
  6.  
  7. 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>> "
  8. read branch
  9.  
  10. if [ "$branch" == "" ]; then
  11. branch="master"
  12. fi
  13.  
  14. printf "\n\t>> $branch has been selected\n"
  15. printf "\t>> $updateLog will be sent as the message\n\n"
  16.  
  17. git add .
  18. git commit -m "$updateLog"
  19. git push origin $branch
  20.  
  21. printf "\n\n\n[Complete...]\n\n"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement