SHARE
TWEET

Untitled

a guest Sep 17th, 2019 103 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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"
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top