SHARE
TWEET

Untitled

a guest Oct 21st, 2019 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # echo Autocommiting...
  2.  
  3. # Date in format of "2019.09.04 - 11.19.09"
  4. # which means Sept 4, 2019 at 11:19:09 AM
  5. current_time=$(date "+%Y.%m.%d-%H.%M.%S")
  6.  
  7. git add .
  8. git add -u
  9. git commit -m "$current_time"
  10.  
  11. # Push, if desired
  12. git push origin HEAD
  13.  
  14. # Pause, if desired
  15. # read -p "Press enter to continue"
  16.  
  17. echo Done!
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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top