Created
December 7, 2019 13:17
-
-
Save David-Lor/ef00aff15d307e551f52fb66061cf515 to your computer and use it in GitHub Desktop.
Git push commit with current user & date
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -ex | |
git add . | |
git commit -m "$(whoami) @ $(date '+%F %T')" | |
git push | |
# if user == "foolano" & time == 20/april/2020 16:20:00 ; then commit msg == "foolano @ 2020-04-20 16:20:00" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment