Skip to content

Instantly share code, notes, and snippets.

@Mr-Ventures
Created October 3, 2019 03:23
Show Gist options
  • Save Mr-Ventures/c5c0583d172531aee35b28761bb75e42 to your computer and use it in GitHub Desktop.
Save Mr-Ventures/c5c0583d172531aee35b28761bb75e42 to your computer and use it in GitHub Desktop.
# 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!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment