Advertisement
Guest User

Untitled

a guest
Oct 21st, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  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!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement