Skip to content

Instantly share code, notes, and snippets.

@David-Lor
Created December 7, 2019 13:17
Show Gist options
  • Save David-Lor/ef00aff15d307e551f52fb66061cf515 to your computer and use it in GitHub Desktop.
Save David-Lor/ef00aff15d307e551f52fb66061cf515 to your computer and use it in GitHub Desktop.
Git push commit with current user & date
#!/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