Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # echo Autocommiting...
- # Date in format of "2019.09.04 - 11.19.09"
- # which means Sept 4, 2019 at 11:19:09 AM
- current_time=$(date "+%Y.%m.%d-%H.%M.%S")
- git add .
- git add -u
- git commit -m "$current_time"
- # Push, if desired
- git push origin HEAD
- # Pause, if desired
- # read -p "Press enter to continue"
- echo Done!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement