dotfiles/commit.sh

8 lines
205 B
Bash
Raw Normal View History

2023-10-09 09:42:05 -05:00
#!/usr/bin/env bash
2023-10-09 10:00:01 -05:00
set -e
2023-10-09 09:42:05 -05:00
GIT_DIR=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd)
cd $GIT_DIR
git add .
git commit -m "Automated backup: $(date +'%Y-%m-%d %H:%M:%S')"
git push origin main